pub enum ExcerptSelection {
Tldr {
outline: OutlineTrail,
document: TldrDocument,
},
DocumentRoot {
outline: OutlineTrail,
heading: Option<Heading>,
blocks: Vec<Block>,
},
DocumentSection {
outline: OutlineTrail,
section: Section,
},
DocumentEntry {
outline: OutlineTrail,
entry: Block,
},
}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
§
outline: OutlineTrailComplete logical location in the document outline.
§
document: TldrDocumentComplete quick-reference content.
DocumentRoot
Complete document content that appears before the first heading.
Fields
§
outline: OutlineTrailComplete logical location in the document outline.
DocumentSection
Complete selected document node, including all descendant sections.
Fields
§
outline: OutlineTrailComplete logical location in the document outline.
DocumentEntry
One addressable owner with its complete, original content.
Fields
§
outline: OutlineTrailComplete logical location in the document outline.
Implementations§
Source§impl ExcerptSelection
impl ExcerptSelection
Sourcepub const fn outline(&self) -> &OutlineTrail
pub const fn outline(&self) -> &OutlineTrail
Return the complete logical location of this selection.
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