Module serde_aux::field_attributes [] [src]

Contains helpers for the fields.

Functions

deserialize_bool_from_anything

Deserializes boolean from a anything (string, number, boolean). If input is a string, it is expected, that it is possible to convert it to a number. The return boolean is true if the number was 1 or 1.0 after parsing.

deserialize_datetime_utc_from_milliseconds

Deserializes a chrono::DateTime from a milliseconds time stamp. Useful when the data is coming from a number which is not a seconds time stamp but milliseconds one. It also handles the string to number conversion if the data was passed as a string with number inside like "1519927261900".

deserialize_number_from_string

Deserializes a number from string or a number.

deserialize_string_from_number

Deserializes string from a number. If the original value is a number value, it will be converted to a string.