pub struct StructureNode {
pub title: String,
pub node_id: String,
pub start_index: usize,
pub end_index: usize,
pub summary: Option<String>,
pub nodes: Vec<StructureNode>,
}Expand description
A node in the document structure for JSON export.
Fields§
§title: StringNode title.
node_id: StringUnique node identifier.
start_index: usizeStarting line number (1-based).
end_index: usizeEnding line number (1-based).
summary: Option<String>Generated summary (optional).
nodes: Vec<StructureNode>Child nodes.
Trait Implementations§
Source§impl Clone for StructureNode
impl Clone for StructureNode
Source§fn clone(&self) -> StructureNode
fn clone(&self) -> StructureNode
Returns a duplicate of the value. Read more
1.0.0 · 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 StructureNode
impl Debug for StructureNode
Source§impl<'de> Deserialize<'de> for StructureNode
impl<'de> Deserialize<'de> for StructureNode
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
Auto Trait Implementations§
impl Freeze for StructureNode
impl RefUnwindSafe for StructureNode
impl Send for StructureNode
impl Sync for StructureNode
impl Unpin for StructureNode
impl UnsafeUnpin for StructureNode
impl UnwindSafe for StructureNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more