pub struct EnumValidator {
pub type_: EnumValidator_,
pub id: Option<Box<String>>,
pub values: Option<Vec<Node>>,
}
Expand description
A schema specifying that a node must be one of several values.
Fields§
§type_: EnumValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
values: Option<Vec<Node>>
A node is valid if it is equal to any of these values.
Trait Implementations§
Source§impl Clone for EnumValidator
impl Clone for EnumValidator
Source§fn clone(&self) -> EnumValidator
fn clone(&self) -> EnumValidator
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 EnumValidator
impl Debug for EnumValidator
Source§impl Default for EnumValidator
impl Default for EnumValidator
Source§impl<'de> Deserialize<'de> for EnumValidatorwhere
EnumValidator: Default,
impl<'de> Deserialize<'de> for EnumValidatorwhere
EnumValidator: Default,
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
Auto Trait Implementations§
impl Freeze for EnumValidator
impl RefUnwindSafe for EnumValidator
impl Send for EnumValidator
impl Sync for EnumValidator
impl Unpin for EnumValidator
impl UnwindSafe for EnumValidator
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