pub struct ScalarData {
pub result_type: MetricResultType,
pub scalar: (i64, f64),
}Expand description
Response data for metric query (scalar results).
Fields§
§result_type: MetricResultTypeResult type discriminator (always scalar).
scalar: (i64, f64)Scalar value as [timestamp, value].
Trait Implementations§
Source§impl Clone for ScalarData
impl Clone for ScalarData
Source§fn clone(&self) -> ScalarData
fn clone(&self) -> ScalarData
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 ScalarData
impl Debug for ScalarData
Source§impl<'de> Deserialize<'de> for ScalarData
impl<'de> Deserialize<'de> for ScalarData
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 ScalarData
impl RefUnwindSafe for ScalarData
impl Send for ScalarData
impl Sync for ScalarData
impl Unpin for ScalarData
impl UnsafeUnpin for ScalarData
impl UnwindSafe for ScalarData
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