Struct bonsaidb::files::Statistics  
source · pub struct Statistics {
    pub total_bytes: u64,
    pub file_count: usize,
    pub last_appended_at: Option<LimitedResolutionTimestamp<Nanoseconds, BonsaiEpoch>>,
}Expand description
Statistics about a set of files contained in a collection.
Fields§
§total_bytes: u64The 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: usizeThe number of files contained within the path queried.
last_appended_at: Option<LimitedResolutionTimestamp<Nanoseconds, BonsaiEpoch>>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<Statistics> for Statistics
 
impl PartialEq<Statistics> 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.