Expand description

Contains helpers for the fields.

Functions

Deserializes boolean from 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 either 1 or 1.0 after parsing.
Deserializes a chrono::DateTime<Utc> 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”.
Deserializes default value from nullable value or empty object. If the original value is null or {}, Default::default() is used.
Deserializes default value from nullable value. If the original value is null, Default::default() is used.
Deserializes a number from string or a number.
Deserializes string from a number. If the original value is a number value, it will be converted to a string.