pub enum OutlineNode {
Tldr {
path: NodePath,
id: NodeId,
title: String,
},
DocumentRoot {
path: NodePath,
id: NodeId,
title: String,
},
DocumentSection {
path: NodePath,
id: NodeId,
title: String,
children: Vec<OutlineNode>,
},
DocumentEntry {
path: NodePath,
id: NodeId,
title: String,
role: DefinitionRole,
case: DefinitionCase,
names: Vec<String>,
},
}Expand description
One uniquely addressable node in a query outline.
Variants§
Tldr
Optional quick-reference node.
Fields
DocumentRoot
Addressable document content that precedes the first heading.
Fields
DocumentSection
One semantic document section.
Fields
§
children: Vec<OutlineNode>Nested section and entry nodes.
DocumentEntry
One semantic command, option, or variable definition.
Implementations§
Source§impl OutlineNode
impl OutlineNode
Trait Implementations§
Source§impl Clone for OutlineNode
impl Clone for OutlineNode
Source§fn clone(&self) -> OutlineNode
fn clone(&self) -> OutlineNode
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 OutlineNode
impl Debug for OutlineNode
Source§impl<'de> Deserialize<'de> for OutlineNode
impl<'de> Deserialize<'de> for OutlineNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OutlineNode
Source§impl JsonSchema for OutlineNode
impl JsonSchema for OutlineNode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for OutlineNode
impl PartialEq for OutlineNode
Source§impl Serialize for OutlineNode
impl Serialize for OutlineNode
impl StructuralPartialEq for OutlineNode
Auto Trait Implementations§
impl Freeze for OutlineNode
impl RefUnwindSafe for OutlineNode
impl Send for OutlineNode
impl Sync for OutlineNode
impl Unpin for OutlineNode
impl UnsafeUnpin for OutlineNode
impl UnwindSafe for OutlineNode
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