Enum oo_bindgen::model::ValidatedDefaultValue
source · #[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 copy 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.