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
JSON structure for exporting document tree (matches PageIndex format).
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