Module icinga2_api::serde
source · [−]Expand description
Custom deserializers for various parts of the Icinga API results
Functions
deserialize an optional value with a FromStr implementation where None is represented as an empty string
deserialize an optional String where None is represented as an empty string
deserializes a unix timestamp with sub second accuracy (usually 6 digits after the decimal point for icinga)
deserializes an optional unix timestamp with sub second accuracy (usually 6 digits after the decimal point for icinga) if the value is 0 return None
deserialize an integer as a time::Duration where the integer represents seconds
deserialize an integer as a time::Duration where the integer represents seconds
serialize a time::Duration as seconds
serialize a unix timestamp with sub second accuracy
serialize an Option
serialize an option value with a ToString implementation where None is represented as an empty string
serialize an optional time::Duration as seconds
serialize a unix timestamp with sub second accuracy if the value is None serialize 0