pub struct DataModelListView {
pub items: Vec<DataModel>,
pub total: usize,
pub filter: Option<String>,
}Expand description
The data a renderer needs to render a data-model list result.
total is the pre-filter count (it includes any built-ins the action
appended); filter the applied substring (if any). Whether built-ins are
present is read off the items themselves (is_builtin), so it is not carried
as a separate field.
Fields§
§items: Vec<DataModel>§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.
Trait Implementations§
Source§impl Clone for DataModelListView
impl Clone for DataModelListView
Source§fn clone(&self) -> DataModelListView
fn clone(&self) -> DataModelListView
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 DataModelListView
impl RefUnwindSafe for DataModelListView
impl Send for DataModelListView
impl Sync for DataModelListView
impl Unpin for DataModelListView
impl UnsafeUnpin for DataModelListView
impl UnwindSafe for DataModelListView
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