Expand description
Custom deserializers for various parts of the Icinga API results
Functionsยง
- deserialize_
empty_ string_ or_ parse - deserialize an optional value with a FromStr implementation where None is represented as an empty string
- deserialize_
empty_ string_ or_ string - deserialize an optional String where None is represented as an empty string
- deserialize_
icinga_ timestamp - deserializes a unix timestamp with sub second accuracy (usually 6 digits after the decimal point for icinga)
- deserialize_
optional_ icinga_ timestamp - 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_
optional_ seconds_ as_ duration - deserialize an integer as a time::Duration where the integer represents seconds
- deserialize_
seconds_ as_ duration - deserialize an integer as a time::Duration where the integer represents seconds
- serialize_
duration_ as_ seconds - serialize a time::Duration as seconds
- serialize_
icinga_ timestamp - serialize a unix timestamp with sub second accuracy
- serialize_
none_ as_ empty_ string - serialize an
Option<String>
as an empty string in the None case and normally otherwise - serialize_
none_ as_ empty_ string_ or_ to_ string - serialize an option value with a ToString implementation where None is represented as an empty string
- serialize_
optional_ duration_ as_ seconds - serialize an optional time::Duration as seconds
- serialize_
optional_ icinga_ timestamp - serialize a unix timestamp with sub second accuracy if the value is None serialize 0