pub struct SchemaValidator<'a, 'doc> {
pub ctx: &'a ValidationContext<'doc>,
pub schema_node_id: SchemaNodeId,
}Expand description
Main validator that dispatches to type-specific validators.
Implements DocumentParser to enable composition with other parsers.
Fields§
§ctx: &'a ValidationContext<'doc>§schema_node_id: SchemaNodeIdTrait Implementations§
Source§impl<'a, 'doc> DocumentParser<'doc> for SchemaValidator<'a, 'doc>
impl<'a, 'doc> DocumentParser<'doc> for SchemaValidator<'a, 'doc>
type Output = ()
type Error = ValidatorError
fn parse( &mut self, parse_ctx: &ParseContext<'doc>, ) -> Result<(), ValidatorError>
Auto Trait Implementations§
impl<'a, 'doc> Freeze for SchemaValidator<'a, 'doc>
impl<'a, 'doc> !RefUnwindSafe for SchemaValidator<'a, 'doc>
impl<'a, 'doc> !Send for SchemaValidator<'a, 'doc>
impl<'a, 'doc> !Sync for SchemaValidator<'a, 'doc>
impl<'a, 'doc> Unpin for SchemaValidator<'a, 'doc>
impl<'a, 'doc> !UnwindSafe for SchemaValidator<'a, 'doc>
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