pub struct Schema {
pub document: Document,
}Expand description
the schema itself
Fields§
§document: Documentthe document this schema defines
this is redundant but it matches the schema document structure
Implementations§
Trait Implementations§
Source§impl<S> Decode<S> for Schemawhere
S: ErrorSpan,
impl<S> Decode<S> for Schemawhere
S: ErrorSpan,
Source§fn decode_node(
node: &SpannedNode<S>,
ctx: &mut Context<S>,
) -> Result<Self, DecodeError<S>>
fn decode_node( node: &SpannedNode<S>, ctx: &mut Context<S>, ) -> Result<Self, DecodeError<S>>
Decodes the node from the ast
Source§impl<S> DecodeChildren<S> for Schemawhere
S: ErrorSpan,
impl<S> DecodeChildren<S> for Schemawhere
S: ErrorSpan,
Source§fn decode_children(
children: &[SpannedNode<S>],
ctx: &mut Context<S>,
) -> Result<Self, DecodeError<S>>
fn decode_children( children: &[SpannedNode<S>], ctx: &mut Context<S>, ) -> Result<Self, DecodeError<S>>
Decodes from a list of chidren ASTs
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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