pub struct ConstantValidator {
pub type_: ConstantValidator_,
pub id: Option<Box<String>>,
pub value: Option<Box<Node>>,
}
Expand description
A validator specifying a constant value that a node must have.
Fields§
§type_: ConstantValidator_
The name of this type
id: Option<Box<String>>
The identifier for this item.
value: Option<Box<Node>>
The value that the node must have.
Trait Implementations§
Source§impl Clone for ConstantValidator
impl Clone for ConstantValidator
Source§fn clone(&self) -> ConstantValidator
fn clone(&self) -> ConstantValidator
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 ConstantValidator
impl Debug for ConstantValidator
Source§impl Default for ConstantValidator
impl Default for ConstantValidator
Source§impl<'de> Deserialize<'de> for ConstantValidatorwhere
ConstantValidator: Default,
impl<'de> Deserialize<'de> for ConstantValidatorwhere
ConstantValidator: 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 ConstantValidator
impl RefUnwindSafe for ConstantValidator
impl Send for ConstantValidator
impl Sync for ConstantValidator
impl Unpin for ConstantValidator
impl UnwindSafe for ConstantValidator
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