pub struct MetadataValInit<T> {
    pub v_default: T,
    pub v_min: Option<T>,
    pub v_max: Option<T>,
    pub v_one_of: Vec<T>,
    pub fn_validate: fn(_: &Metadata, _: &mut dyn Any) -> Option<bool>,
}

Fields§

§v_default: T§v_min: Option<T>§v_max: Option<T>§v_one_of: Vec<T>§fn_validate: fn(_: &Metadata, _: &mut dyn Any) -> Option<bool>

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.