Struct bonsaidb_files::Statistics
source · pub struct Statistics {
pub total_bytes: u64,
pub file_count: usize,
pub last_appended_at: Option<TimestampAsNanoseconds>,
}
Expand description
Statistics about a set of files contained in a collection.
Fields§
§total_bytes: u64
The total number of bytes contained within the path queried. This only counts bytes that would be returned when reading the contents of files. No metadata information is included in this calculation.
file_count: usize
The number of files contained within the path queried.
last_appended_at: Option<TimestampAsNanoseconds>
The last timestamp data was appended to a file within the path queried.
This contains None
if there is no data present.
Trait Implementations§
source§impl Clone for Statistics
impl Clone for Statistics
source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Statistics
impl Debug for Statistics
source§impl PartialEq for Statistics
impl PartialEq for Statistics
source§fn eq(&self, other: &Statistics) -> bool
fn eq(&self, other: &Statistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Statistics
impl Eq for Statistics
impl StructuralEq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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