pub struct StandardSchema<'s> {
pub version: u32,
pub vendor: &'static str,
/* private fields */
}Expand description
The Standard Schema surface of a compiled shape.
Fields§
§version: u32Always 1.
vendor: &'static strAlways “shape”.
Implementations§
Source§impl<'s> StandardSchema<'s>
impl<'s> StandardSchema<'s>
Sourcepub fn validate(&self, input: Value) -> StandardResult
pub fn validate(&self, input: Value) -> StandardResult
Validate without failing: the issues are the result.
Trait Implementations§
Source§impl<'s> Clone for StandardSchema<'s>
impl<'s> Clone for StandardSchema<'s>
Source§fn clone(&self) -> StandardSchema<'s>
fn clone(&self) -> StandardSchema<'s>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'s> !RefUnwindSafe for StandardSchema<'s>
impl<'s> !UnwindSafe for StandardSchema<'s>
impl<'s> Freeze for StandardSchema<'s>
impl<'s> Send for StandardSchema<'s>
impl<'s> Sync for StandardSchema<'s>
impl<'s> Unpin for StandardSchema<'s>
impl<'s> UnsafeUnpin for StandardSchema<'s>
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