pub struct ListRows {
pub format: ListFormat,
pub sort_criteria: ListSortCriteria,
pub rows: Vec<ListRow>,
}
Expand description
All rows of the file list and its format and sorting criteria
Fields§
§format: ListFormat
How to format the file row. See ListColumn for the available columns.
sort_criteria: ListSortCriteria
How to sort the list. See ListSortCriteria for the available criteria.
rows: Vec<ListRow>
All elements of the file list
Implementations§
Source§impl ListRows
impl ListRows
Sourcepub fn new(
format: ListFormat,
sort_criteria: ListSortCriteria,
rows: Vec<ListRow>,
) -> Self
pub fn new( format: ListFormat, sort_criteria: ListSortCriteria, rows: Vec<ListRow>, ) -> Self
Create a new table with the specified params and sort it
Sourcepub fn total_lines(&self) -> usize
pub fn total_lines(&self) -> usize
Number if file lines in the table
Sourcepub fn total_actual_size(&self) -> u64
pub fn total_actual_size(&self) -> u64
Total size of the files in the table
Sourcepub fn total_cached_size(&self) -> u64
pub fn total_cached_size(&self) -> u64
Total size of the recorded files in the table
Trait Implementations§
impl StructuralPartialEq for ListRows
Auto Trait Implementations§
impl Freeze for ListRows
impl RefUnwindSafe for ListRows
impl Send for ListRows
impl Sync for ListRows
impl Unpin for ListRows
impl UnwindSafe for ListRows
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