shared::domain::ser

Function csv_encode_i16_indices

Source
pub fn csv_encode_i16_indices<T: Into<i16> + Copy, S>(
    values: &[T],
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

ASSUMING this is only going to be used for resources identified by index, which is a non-negative integer which begins counting up from 0.

In most cases for this project, i16 is used instead of u16 because PostgreSQL does not have unsigned integer types.