Module serde_aux::field_attributes [−][src]
Expand description
Contains helpers for the fields.
Structs
Builder to create a parser, that parses a separated string or a vec into a vec.
Enums
Pattern on which a string can be split.
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 Cell
option number from string or a number. Same logic as "deserialize_option_number_from_string"
.
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 Mutex
option number from string or a number. Same logic as "deserialize_option_number_from_string"
.
Deserializes a number from string or a number.
Deserializes an option number from string or a number.
Deserializes a RefCell
option number from string or a number. Same logic as "deserialize_option_number_from_string"
.
Deserializes a RwLock
option number from string or a number. Same logic as "deserialize_option_number_from_string"
.
Deserializes string from a number. If the original value is a number value, it will be converted to a string.
Deserializes a comma separated string into a Vec<T>
.