pub struct Validator {
pub name: String,
pub func: Arc<ValidatorFn>,
pub args: Vec<Value>,
pub suffix: Option<String>,
pub inner: Option<Arc<Inner>>,
}Expand description
A custom check attached to a node, before or after its structural check.
Fields§
§name: String§func: Arc<ValidatorFn>§args: Vec<Value>§suffix: Option<String>The .Name(args) suffix the validator renders as in a spec text.
inner: Option<Arc<Inner>>The checks a Catch or Transform took inside.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Validator
impl !UnwindSafe for Validator
impl Freeze for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnsafeUnpin for Validator
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