[][src]Trait serde_single_or_vec::Format

pub trait Format {
    fn use_single() -> bool;
}

Specifies whether Serializsation should fall back to a single value or not

Required methods

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

Loading content...

Implementors

impl Format for AlwaysVector[src]

impl Format for PreferSingle[src]

Loading content...