pub struct MetricStats {
pub samples: u64,
pub avg: Option<f64>,
pub min: Option<f64>,
pub max: Option<f64>,
pub p50: Option<f64>,
pub p95: Option<f64>,
pub sum: Option<f64>,
}Fields§
§samples: u64§avg: Option<f64>§min: Option<f64>§max: Option<f64>§p50: Option<f64>§p95: Option<f64>§sum: Option<f64>Trait Implementations§
Source§impl Clone for MetricStats
impl Clone for MetricStats
Source§fn clone(&self) -> MetricStats
fn clone(&self) -> MetricStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricStats
impl Debug for MetricStats
Source§impl<'de> Deserialize<'de> for MetricStats
impl<'de> Deserialize<'de> for MetricStats
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
Source§impl JsonSchema for MetricStats
impl JsonSchema for MetricStats
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MetricStats
impl PartialEq for MetricStats
Source§fn eq(&self, other: &MetricStats) -> bool
fn eq(&self, other: &MetricStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricStats
impl Serialize for MetricStats
impl StructuralPartialEq for MetricStats
Auto Trait Implementations§
impl Freeze for MetricStats
impl RefUnwindSafe for MetricStats
impl Send for MetricStats
impl Sync for MetricStats
impl Unpin for MetricStats
impl UnsafeUnpin for MetricStats
impl UnwindSafe for MetricStats
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