#[non_exhaustive]pub enum OptionValue {
Bool(bool),
Number(Number),
String(String),
List(Vec<String>),
}Expand description
A plugin option’s value.
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.
Bool(bool)
A boolean.
Number(Number)
A number.
String(String)
A string.
List(Vec<String>)
A list of strings.
Trait Implementations§
Source§impl Clone for OptionValue
impl Clone for OptionValue
Source§impl Debug for OptionValue
impl Debug for OptionValue
Source§impl<'de> Deserialize<'de> for OptionValue
impl<'de> Deserialize<'de> for OptionValue
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 PartialEq for OptionValue
impl PartialEq for OptionValue
Source§impl Serialize for OptionValue
impl Serialize for OptionValue
impl StructuralPartialEq for OptionValue
Auto Trait Implementations§
impl Forget for OptionValue
impl Freeze for OptionValue
impl Move for OptionValue
impl RefUnwindSafe for OptionValue
impl Send for OptionValuewhere
RawVecInner: Send,
impl Sync for OptionValuewhere
RawVecInner: Sync,
impl Unpin for OptionValue
impl UnsafeUnpin for OptionValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for OptionValuewhere
RawVecInner: UnwindSafe,
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