pub enum ExcerptSelection {
Tldr {
path: NodePath,
id: NodeId,
title: String,
document: TldrDocument,
},
DocumentRoot {
path: NodePath,
id: NodeId,
title: String,
blocks: Vec<Block>,
},
DocumentSection {
path: NodePath,
id: NodeId,
title: String,
breadcrumbs: Vec<OutlineReference>,
section: Section,
},
DocumentEntry {
path: NodePath,
id: NodeId,
title: String,
breadcrumbs: Vec<OutlineReference>,
entry: DefinitionItem,
},
}Expand description
One selected document node together with its location in the complete outline.
Variants§
Tldr
Optional quick-reference content preceding the primary document.
Fields
§
document: TldrDocumentComplete quick-reference content.
DocumentRoot
Complete document content that appears before the first heading.
Fields
DocumentSection
Complete selected document node, including all descendant sections.
Fields
Ordered ancestors from the document root to the parent section.
DocumentEntry
One addressable semantic definition and its complete description.
Trait Implementations§
Source§impl Clone for ExcerptSelection
impl Clone for ExcerptSelection
Source§fn clone(&self) -> ExcerptSelection
fn clone(&self) -> ExcerptSelection
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 ExcerptSelection
impl Debug for ExcerptSelection
Source§impl<'de> Deserialize<'de> for ExcerptSelection
impl<'de> Deserialize<'de> for ExcerptSelection
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 ExcerptSelection
Source§impl JsonSchema for ExcerptSelection
impl JsonSchema for ExcerptSelection
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 ExcerptSelection
impl PartialEq for ExcerptSelection
Source§impl Serialize for ExcerptSelection
impl Serialize for ExcerptSelection
impl StructuralPartialEq for ExcerptSelection
Auto Trait Implementations§
impl Freeze for ExcerptSelection
impl RefUnwindSafe for ExcerptSelection
impl Send for ExcerptSelection
impl Sync for ExcerptSelection
impl Unpin for ExcerptSelection
impl UnsafeUnpin for ExcerptSelection
impl UnwindSafe for ExcerptSelection
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