pub enum SuperValue {
Single(String),
List(Vec<String>),
}Expand description
The possible value of the config file.
Ususally a SuperValue::Single if 1 is provided or SuperValue::List if 2 or more are.
Variants§
Single(String)
A single element provided, e.g. my_key element
List(Vec<String>)
Multiple elements provided, e.g. my_key first_element second_element
Trait Implementations§
Source§impl Clone for SuperValue
impl Clone for SuperValue
Source§fn clone(&self) -> SuperValue
fn clone(&self) -> SuperValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuperValue
impl Debug for SuperValue
Source§impl PartialEq for SuperValue
impl PartialEq for SuperValue
Source§impl PartialOrd for SuperValue
impl PartialOrd for SuperValue
impl StructuralPartialEq for SuperValue
Auto Trait Implementations§
impl Freeze for SuperValue
impl RefUnwindSafe for SuperValue
impl Send for SuperValue
impl Sync for SuperValue
impl Unpin for SuperValue
impl UnsafeUnpin for SuperValue
impl UnwindSafe for SuperValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more