pub struct Engine<'a> {
pub root_schema: &'a RootSchema,
pub context: Context<'a>,
}Fields§
§root_schema: &'a RootSchema§context: Context<'a>Implementations§
Source§impl<'a> Engine<'a>
impl<'a> Engine<'a>
pub fn new(root_schema: &'a RootSchema, context: Context<'a>) -> Self
pub fn evaluate<'b: 'a>( root_schema: &'b RootSchema, value: &str, fail_fast: bool, ) -> Result<Context<'b>>
Sourcepub fn evaluate_with_schemas<'b: 'a>(
root_schema: &'b RootSchema,
value: &str,
fail_fast: bool,
preloaded_schemas: HashMap<String, Rc<RootSchema>>,
) -> Result<Context<'b>>
pub fn evaluate_with_schemas<'b: 'a>( root_schema: &'b RootSchema, value: &str, fail_fast: bool, preloaded_schemas: HashMap<String, Rc<RootSchema>>, ) -> Result<Context<'b>>
Evaluate with pre-loaded schemas (e.g. from multiple -f flags). Schemas are keyed by document URI (file:// or https://).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Engine<'a>
impl<'a> !RefUnwindSafe for Engine<'a>
impl<'a> !Send for Engine<'a>
impl<'a> !Sync for Engine<'a>
impl<'a> Unpin for Engine<'a>
impl<'a> UnsafeUnpin for Engine<'a>
impl<'a> !UnwindSafe for Engine<'a>
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