pub struct DatabaseStatistics {
pub exchange: String,
pub node_count: i64,
pub instrument_count: i64,
pub instrument_types: Vec<(String, i64)>,
pub max_hierarchy_depth: i32,
}Expand description
Statistics about the stored market data
Fields§
§exchange: StringName of the exchange for which statistics are collected
node_count: i64Total number of hierarchy nodes in the database
instrument_count: i64Total number of market instruments stored
instrument_types: Vec<(String, i64)>List of instrument types with their respective counts (type_name, count)
max_hierarchy_depth: i32Maximum depth level found in the market hierarchy tree
Implementations§
Source§impl DatabaseStatistics
impl DatabaseStatistics
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Prints a formatted summary of the statistics
Trait Implementations§
Source§impl Clone for DatabaseStatistics
impl Clone for DatabaseStatistics
Source§fn clone(&self) -> DatabaseStatistics
fn clone(&self) -> DatabaseStatistics
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DatabaseStatistics
impl RefUnwindSafe for DatabaseStatistics
impl Send for DatabaseStatistics
impl Sync for DatabaseStatistics
impl Unpin for DatabaseStatistics
impl UnwindSafe for DatabaseStatistics
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