#[non_exhaustive]pub enum ValidatedDefaultValue {
Bool(bool),
Number(NumberValue),
Duration(DurationType, Duration),
Enum(Handle<Enum<Unvalidated>>, Name),
String(String),
DefaultStruct(StructType<Unvalidated>, InitializerType, Name),
}
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)
Number(NumberValue)
Duration(DurationType, Duration)
Enum(Handle<Enum<Unvalidated>>, Name)
String(String)
DefaultStruct(StructType<Unvalidated>, InitializerType, Name)
requires that the struct have a default initializer
Trait Implementations§
Source§impl Clone for ValidatedDefaultValue
impl Clone for ValidatedDefaultValue
Source§fn clone(&self) -> ValidatedDefaultValue
fn clone(&self) -> ValidatedDefaultValue
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 ValidatedDefaultValue
impl Debug for ValidatedDefaultValue
Source§impl Display for ValidatedDefaultValue
impl Display for ValidatedDefaultValue
Source§impl From<NumberValue> for ValidatedDefaultValue
impl From<NumberValue> for ValidatedDefaultValue
Source§fn from(x: NumberValue) -> Self
fn from(x: NumberValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidatedDefaultValue
impl RefUnwindSafe for ValidatedDefaultValue
impl !Send for ValidatedDefaultValue
impl !Sync for ValidatedDefaultValue
impl Unpin for ValidatedDefaultValue
impl UnwindSafe for ValidatedDefaultValue
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