pub struct Children {
pub id: Option<String>,
pub description: Option<String>,
pub ref_: Option<String>,
pub nodes: Vec<Node>,
}Expand description
schema for a node’s children
Fields§
§id: Option<String>id for these children (can be used for refs)
description: Option<String>human readable description of these children
ref_: Option<String>KDL query from which to load children information instead of specifying it inline (allows for recursion)
nodes: Vec<Node>nodes which can appear as children
Trait Implementations§
Source§impl<S> Decode<S> for Childrenwhere
S: ErrorSpan,
impl<S> Decode<S> for Childrenwhere
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
impl Eq for Children
impl StructuralPartialEq for Children
Auto Trait Implementations§
impl Freeze for Children
impl RefUnwindSafe for Children
impl Send for Children
impl Sync for Children
impl Unpin for Children
impl UnwindSafe for Children
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