Skip to main content

Module with

Module with 

Source
Expand description

Sub-module mirroring serde_yaml::with.

serde_yaml::with::singleton_map and its variants are the idiomatic way to control enum representation in #[serde(with = "...")] attributes. noyalib’s own implementations live under crate::with; this re-export gives migrants the serde_yaml path-form so existing #[serde(with = "serde_yaml::with::…")] attributes only need a search-and-replace on the prefix.

Re-exports§

pub use crate::with::nested_singleton_map;
pub use crate::with::singleton_map;
pub use crate::with::singleton_map_optional;
pub use crate::with::singleton_map_recursive;
pub use crate::with::singleton_map_with;