pub struct Stat<T> {
pub value: T,
pub as_of: DateTime<Utc>,
pub n: Option<u64>,
pub source: Source,
}Expand description
A value with the metadata required to render honestly.
Fields§
§value: TThe actual value.
as_of: DateTime<Utc>When the engine produced this reading.
n: Option<u64>Sample size, when the value is a summary statistic. None when
the value is a live reading (price, position size, etc.).
source: SourceWhere it came from.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Stat<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Stat<T>where
T: Deserialize<'de>,
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<T> Freeze for Stat<T>where
T: Freeze,
impl<T> RefUnwindSafe for Stat<T>where
T: RefUnwindSafe,
impl<T> Send for Stat<T>where
T: Send,
impl<T> Sync for Stat<T>where
T: Sync,
impl<T> Unpin for Stat<T>where
T: Unpin,
impl<T> UnsafeUnpin for Stat<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Stat<T>where
T: UnwindSafe,
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