Trait serde_single_or_vec2::Format
source · [−]pub trait Format {
fn use_single() -> bool;
}
Expand description
Specifies whether Serializsation should fall back to a single value or not
Required Methods
sourcefn use_single() -> bool
fn use_single() -> bool
If this returns true, the serializer will returns a single value if there is only one in the vector. Otherwise it will always returns a vector