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).
Variants§
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<'de> Deserialize<'de> for KeyValueOptionKind
impl<'de> Deserialize<'de> for KeyValueOptionKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Serialize for KeyValueOptionKind
impl Serialize for KeyValueOptionKind
Source§impl Visit for KeyValueOptionKind
impl Visit for KeyValueOptionKind
Source§impl VisitMut for KeyValueOptionKind
impl VisitMut for KeyValueOptionKind
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl 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 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