Struct metrix::snapshot::Snapshot
[−]
[src]
pub struct Snapshot { pub items: Vec<(String, ItemKind)>, }
Fields
items: Vec<(String, ItemKind)>
Methods
impl Snapshot
[src]
fn push<K: Into<String>>(&mut self, k: K, v: ItemKind)
[src]
fn to_default_json(&self) -> String
[src]
Output JSON with default settings.
fn to_json(&self, config: &JsonConfig) -> String
[src]
Output JSON with the given settings.
Trait Implementations
impl Debug for Snapshot
[src]
impl Clone for Snapshot
[src]
fn clone(&self) -> Snapshot
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more