pub struct VocabularyListView {
pub items: Vec<Vocabulary>,
pub total: usize,
pub filter: Option<String>,
pub counted: bool,
}Expand description
The data a renderer needs to render a vocabulary list result.
Fields§
§items: Vec<Vocabulary>§total: usizePre-filter total count (before --filter was applied). Feeds the
“(m of total matching …)” prose count line.
filter: Option<String>The --filter substring the user supplied, if any.
counted: boolWhether --count was passed (drives which tabular default-column set
applies and the prose “· N nodes · M levels” suffix per item). NOT the
same test as “any item carries a count” — an item can carry None
after a failed per-tree fetch even when --count WAS passed; counted
records the flag, not the outcome.
Trait Implementations§
Source§impl Clone for VocabularyListView
impl Clone for VocabularyListView
Auto Trait Implementations§
impl Freeze for VocabularyListView
impl RefUnwindSafe for VocabularyListView
impl Send for VocabularyListView
impl Sync for VocabularyListView
impl Unpin for VocabularyListView
impl UnsafeUnpin for VocabularyListView
impl UnwindSafe for VocabularyListView
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