pub struct FlatTreeNode {Show 13 fields
pub id: String,
pub parent_id: Option<String>,
pub depth: usize,
pub guides: Vec<bool>,
pub summary: String,
pub full_text: String,
pub kind_label: &'static str,
pub is_user: bool,
pub is_tool: bool,
pub is_compaction: bool,
pub has_children: bool,
pub child_count: usize,
pub is_last_child: bool,
}Expand description
A flattened tree node for display.
Fields§
§id: String§parent_id: Option<String>§depth: usize§guides: Vec<bool>§summary: String§full_text: String§kind_label: &'static str§is_user: bool§is_tool: bool§is_compaction: bool§has_children: bool§child_count: usize§is_last_child: boolTrait Implementations§
Source§impl Clone for FlatTreeNode
impl Clone for FlatTreeNode
Source§fn clone(&self) -> FlatTreeNode
fn clone(&self) -> FlatTreeNode
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 moreAuto Trait Implementations§
impl Freeze for FlatTreeNode
impl RefUnwindSafe for FlatTreeNode
impl Send for FlatTreeNode
impl Sync for FlatTreeNode
impl Unpin for FlatTreeNode
impl UnsafeUnpin for FlatTreeNode
impl UnwindSafe for FlatTreeNode
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