pub struct ChartDataPoint {
pub timestamp: Option<String>,
pub value: Option<String>,
}Expand description
ChartDataPoint
JSON schema
{
"type": "object",
"properties": {
"timestamp": {
"description": "Bucket timestamp (ISO 8601)",
"examples": [
"2026-02-18T00:00:00Z"
],
"type": [
"string",
"null"
]
},
"value": {
"description": "Metric value for this bucket",
"examples": [
"-0.002"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§timestamp: Option<String>Bucket timestamp (ISO 8601)
value: Option<String>Metric value for this bucket
Trait Implementations§
Source§impl Clone for ChartDataPoint
impl Clone for ChartDataPoint
Source§fn clone(&self) -> ChartDataPoint
fn clone(&self) -> ChartDataPoint
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 ChartDataPoint
impl Debug for ChartDataPoint
Source§impl Default for ChartDataPoint
impl Default for ChartDataPoint
Source§impl<'de> Deserialize<'de> for ChartDataPoint
impl<'de> Deserialize<'de> for ChartDataPoint
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 ChartDataPoint
impl RefUnwindSafe for ChartDataPoint
impl Send for ChartDataPoint
impl Sync for ChartDataPoint
impl Unpin for ChartDataPoint
impl UnsafeUnpin for ChartDataPoint
impl UnwindSafe for ChartDataPoint
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