Struct serde_with::formats::PreferOne [−][src]
pub struct PreferOne;
Expand description
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PreferOne
impl UnwindSafe for PreferOne
Blanket Implementations
Mutably borrows from an owned value. Read more