pub struct StatsSnapshot {
pub tables: Vec<(String, TableStats)>,
pub columns: Vec<(String, String, ColumnStats)>,
}Fields§
§tables: Vec<(String, TableStats)>§columns: Vec<(String, String, ColumnStats)>Implementations§
Source§impl StatsSnapshot
impl StatsSnapshot
pub fn to_cache(&self) -> StatsCache
pub fn from_cache(cache: &StatsCache) -> Self
pub fn load_json(path: impl AsRef<Path>) -> ChrysoResult<Self>
pub fn write_json(&self, path: impl AsRef<Path>) -> ChrysoResult<()>
Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
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 moreSource§impl Debug for StatsSnapshot
impl Debug for StatsSnapshot
Source§impl<'de> Deserialize<'de> for StatsSnapshot
impl<'de> Deserialize<'de> for StatsSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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