pub struct Document {
pub info: Info,
pub nodes: Vec<Node>,
}Expand description
the schema document
Fields§
§info: Infoschema metadata
nodes: Vec<Node>top-level node definitions
Trait Implementations§
Source§impl<S> Decode<S> for Documentwhere
S: ErrorSpan,
impl<S> Decode<S> for Documentwhere
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 Documentwhere
S: ErrorSpan,
impl<S> DecodeChildren<S> for Documentwhere
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 Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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