pub struct TaxonomyNode {
pub namespace: String,
pub name: String,
pub count: usize,
pub subtree_count: usize,
pub children: Vec<TaxonomyNode>,
}Expand description
One node of the hierarchical namespace tree returned by
memory_get_taxonomy (Pillar 1 / Stream A).
count is the number of memories at exactly this namespace;
subtree_count is the count of memories at this node plus every
descendant the depth limit allowed us to expand. Children are sorted
alphabetically by name so callers get a stable rendering order.
Fields§
§namespace: StringFull namespace path of this node. Empty string for the synthetic
root when no namespace_prefix is supplied.
name: StringLast /-delimited segment of namespace (display label). Empty
for the synthetic root.
count: usizeMemories whose namespace equals this node’s namespace.
subtree_count: usizeMemories at this node plus all descendants visible within the
requested depth. Memories beneath the depth cutoff still
contribute to the subtree_count of the boundary ancestor.
children: Vec<TaxonomyNode>Direct child nodes, sorted alphabetically by name.
Trait Implementations§
Source§impl Clone for TaxonomyNode
impl Clone for TaxonomyNode
Source§fn clone(&self) -> TaxonomyNode
fn clone(&self) -> TaxonomyNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaxonomyNode
impl Debug for TaxonomyNode
Auto Trait Implementations§
impl Freeze for TaxonomyNode
impl RefUnwindSafe for TaxonomyNode
impl Send for TaxonomyNode
impl Sync for TaxonomyNode
impl Unpin for TaxonomyNode
impl UnsafeUnpin for TaxonomyNode
impl UnwindSafe for TaxonomyNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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