pub struct PublicSample {
pub interval: f64,
pub items: ArrayUnionFloatNoneTypeBits64,
pub timestamp: LocalizedDateTime,
}Expand description
Object defining a recorded sample.
JSON schema
{
"title": "PublicSample",
"description": "Object defining a recorded sample.",
"type": "object",
"required": [
"interval",
"items",
"timestamp"
],
"properties": {
"interval": {
"title": "",
"description": "Interval in seconds between the sampled items.",
"type": "number"
},
"items": {
"$ref": "#/components/schemas/Array_Union_float__NoneType__Bits64_"
},
"timestamp": {
"$ref": "#/components/schemas/LocalizedDateTime"
}
}
}Fields§
§interval: f64Interval in seconds between the sampled items.
items: ArrayUnionFloatNoneTypeBits64§timestamp: LocalizedDateTimeTrait Implementations§
Source§impl Clone for PublicSample
impl Clone for PublicSample
Source§fn clone(&self) -> PublicSample
fn clone(&self) -> PublicSample
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 PublicSample
impl Debug for PublicSample
Source§impl<'de> Deserialize<'de> for PublicSample
impl<'de> Deserialize<'de> for PublicSample
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 PublicSample
impl RefUnwindSafe for PublicSample
impl Send for PublicSample
impl Sync for PublicSample
impl Unpin for PublicSample
impl UnsafeUnpin for PublicSample
impl UnwindSafe for PublicSample
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