[−][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 |
| empty | |
| json_string | De-/serialization functions to and from json strings, allows the type to be used as a query string. |
| test | Helpers for tests |
| time | De-/serialization functions for |
| urlencoded |
|
Functions
| default_true | Simply returns |
| 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. |
| is_true | Simplfy dereferences the given bool. |