pub enum KeyValueOptionKind {
Single(Value),
Multi(Vec<Value>),
KeyValueOptions(Box<KeyValueOptions>),
}Expand description
An option can have a single value, multiple values or a nested list of values.
A value can be numeric, boolean, etc. Enum-style values are represented
as Value::Placeholder. For example: MFA_METHOD=SMS will be represented as
Value::Placeholder("SMS".to_string).
The kind of value for a key-value option.
Variants§
Single(Value)
A single value.
Multi(Vec<Value>)
Multiple values.
KeyValueOptions(Box<KeyValueOptions>)
A nested list of key-value options.
Trait Implementations§
Source§impl Clone for KeyValueOptionKind
impl Clone for KeyValueOptionKind
Source§fn clone(&self) -> KeyValueOptionKind
fn clone(&self) -> KeyValueOptionKind
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 KeyValueOptionKind
impl Debug for KeyValueOptionKind
Source§impl Hash for KeyValueOptionKind
impl Hash for KeyValueOptionKind
Source§impl Ord for KeyValueOptionKind
impl Ord for KeyValueOptionKind
Source§fn cmp(&self, other: &KeyValueOptionKind) -> Ordering
fn cmp(&self, other: &KeyValueOptionKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyValueOptionKind
impl PartialEq for KeyValueOptionKind
Source§impl PartialOrd for KeyValueOptionKind
impl PartialOrd for KeyValueOptionKind
Source§impl Visit for KeyValueOptionKind
impl Visit for KeyValueOptionKind
Source§impl VisitMut for KeyValueOptionKind
impl VisitMut for KeyValueOptionKind
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for KeyValueOptionKind
impl StructuralPartialEq for KeyValueOptionKind
Auto Trait Implementations§
impl Freeze for KeyValueOptionKind
impl RefUnwindSafe for KeyValueOptionKind
impl Send for KeyValueOptionKind
impl Sync for KeyValueOptionKind
impl Unpin for KeyValueOptionKind
impl UnsafeUnpin for KeyValueOptionKind
impl UnwindSafe for KeyValueOptionKind
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