pub fn convert_int_to_another<SOURCE, TARGET>(
field_name: &str,
value: SOURCE,
try_from: fn(_: SOURCE) -> Result<TARGET, TryFromIntError>,
) -> Result<TARGET, Status>
Expand description
Converts an integer type in to another integer type. This is needed because tonic defaults to wrong integer types for some parameters.