Struct ory_client::models::metrics_datapoint::MetricsDatapoint
source · pub struct MetricsDatapoint {
pub count: i64,
pub time: String,
}Expand description
MetricsDatapoint : Represents a single datapoint/bucket of a time series
Fields§
§count: i64The count of events that occured in this time
time: StringThe time of the bucket
Implementations§
source§impl MetricsDatapoint
impl MetricsDatapoint
sourcepub fn new(count: i64, time: String) -> MetricsDatapoint
pub fn new(count: i64, time: String) -> MetricsDatapoint
Represents a single datapoint/bucket of a time series
Trait Implementations§
source§impl Clone for MetricsDatapoint
impl Clone for MetricsDatapoint
source§fn clone(&self) -> MetricsDatapoint
fn clone(&self) -> MetricsDatapoint
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 MetricsDatapoint
impl Debug for MetricsDatapoint
source§impl<'de> Deserialize<'de> for MetricsDatapoint
impl<'de> Deserialize<'de> for MetricsDatapoint
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 PartialEq for MetricsDatapoint
impl PartialEq for MetricsDatapoint
source§fn eq(&self, other: &MetricsDatapoint) -> bool
fn eq(&self, other: &MetricsDatapoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MetricsDatapoint
impl Serialize for MetricsDatapoint
impl StructuralPartialEq for MetricsDatapoint
Auto Trait Implementations§
impl RefUnwindSafe for MetricsDatapoint
impl Send for MetricsDatapoint
impl Sync for MetricsDatapoint
impl Unpin for MetricsDatapoint
impl UnwindSafe for MetricsDatapoint
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