[][src]Crate ruma_serde

De-/serialization helpers for other ruma crates

Re-exports

pub use empty::vec_as_map_of_empty;

Modules

duration

De-/serialization functions for std::time::Duration objects

empty
json_string

De-/serialization functions to and from json strings, allows the type to be used as a query string.

time

De-/serialization functions for std::time::SystemTime objects

urlencoded

x-www-form-urlencoded meets Serde

Functions

default_true

Simply returns true.

empty_string_as_none

Serde deserialization decorator to map empty Strings to None, and forward non-empty Strings to the Deserialize implementation for T. Useful for the typical "A room with an X event with an absent, null, or empty Y field should be treated the same as a room with no such event." formulation in the spec.

is_default

Check whether a value is equal to its default value.