Enum rs_es::units::OneOrMany
[−]
[src]
pub enum OneOrMany<T> { One(T), Many(Vec<T>), }
A non-specific holder for an option which can either be a single thing, or multiple instances of that thing.
Variants
One(T)
Many(Vec<T>)
Trait Implementations
impl<T: Debug> Debug for OneOrMany<T>
[src]
impl<T: Default> Default for OneOrMany<T>
[src]
impl<T> Serialize for OneOrMany<T> where T: Serialize
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.