#[non_exhaustive]pub enum OptionValue {
Bool(bool),
Duration(Duration),
Int(i32),
Map(HashMap<String, String>),
String(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for OptionValue
impl Clone for OptionValue
Source§fn clone(&self) -> OptionValue
fn clone(&self) -> OptionValue
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 OptionValue
impl Debug for OptionValue
Source§impl From<&str> for OptionValue
impl From<&str> for OptionValue
Source§impl From<Duration> for OptionValue
impl From<Duration> for OptionValue
Source§impl From<String> for OptionValue
impl From<String> for OptionValue
Source§impl From<Url> for OptionValue
impl From<Url> for OptionValue
Source§impl From<bool> for OptionValue
impl From<bool> for OptionValue
Source§impl From<i32> for OptionValue
impl From<i32> for OptionValue
Source§impl From<u16> for OptionValue
impl From<u16> for OptionValue
Source§impl PartialEq for OptionValue
impl PartialEq for OptionValue
impl StructuralPartialEq for OptionValue
Auto Trait Implementations§
impl Freeze for OptionValue
impl RefUnwindSafe for OptionValue
impl Send for OptionValue
impl Sync for OptionValue
impl Unpin for OptionValue
impl UnwindSafe for OptionValue
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