Struct serde_with::formats::PreferOne
source · pub struct PreferOne;
Expand description
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Trait Implementations§
impl Format for PreferOne
Use in combination with OneOrMany
. Emit single element for lists of size 1.