pub struct SchemaDocument { /* private fields */ }Expand description
Owned JSON Schema document that has passed structural limit checks.
Implementations§
Source§impl SchemaDocument
impl SchemaDocument
Sourcepub fn new(value: Json) -> AppResult<Self>
pub fn new(value: Json) -> AppResult<Self>
Create a schema document with default structural limits.
Sourcepub fn with_limits(value: Json, limits: ValidationLimits) -> AppResult<Self>
pub fn with_limits(value: Json, limits: ValidationLimits) -> AppResult<Self>
Create a schema document with custom structural limits.
Trait Implementations§
Source§impl Clone for SchemaDocument
impl Clone for SchemaDocument
Source§fn clone(&self) -> SchemaDocument
fn clone(&self) -> SchemaDocument
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 moreSource§impl Debug for SchemaDocument
impl Debug for SchemaDocument
Source§impl PartialEq for SchemaDocument
impl PartialEq for SchemaDocument
impl StructuralPartialEq for SchemaDocument
Auto Trait Implementations§
impl Freeze for SchemaDocument
impl RefUnwindSafe for SchemaDocument
impl Send for SchemaDocument
impl Sync for SchemaDocument
impl Unpin for SchemaDocument
impl UnsafeUnpin for SchemaDocument
impl UnwindSafe for SchemaDocument
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