#[non_exhaustive]pub struct TimeSeriesDataPoint {
pub wall_time: Option<Timestamp>,
pub step: i64,
pub value: Option<Value>,
/* private fields */
}Expand description
A TensorboardTimeSeries data point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wall_time: Option<Timestamp>Wall clock timestamp when this data point is generated by the end user.
step: i64Step index of this data point within the run.
value: Option<Value>Value of this time series data point.
Implementations§
Source§impl TimeSeriesDataPoint
impl TimeSeriesDataPoint
pub fn new() -> Self
Sourcepub fn set_wall_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_wall_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of wall_time.
Sourcepub fn set_value<T: Into<Option<Value>>>(self, v: T) -> Self
pub fn set_value<T: Into<Option<Value>>>(self, v: T) -> Self
Sets the value of value.
Note that all the setters affecting value are mutually
exclusive.
Sourcepub fn scalar(&self) -> Option<&Box<Scalar>>
pub fn scalar(&self) -> Option<&Box<Scalar>>
The value of value
if it holds a Scalar, None if the field is not set or
holds a different branch.
Sourcepub fn set_scalar<T: Into<Box<Scalar>>>(self, v: T) -> Self
pub fn set_scalar<T: Into<Box<Scalar>>>(self, v: T) -> Self
Sets the value of value
to hold a Scalar.
Note that all the setters affecting value are
mutually exclusive.
Sourcepub fn tensor(&self) -> Option<&Box<TensorboardTensor>>
pub fn tensor(&self) -> Option<&Box<TensorboardTensor>>
The value of value
if it holds a Tensor, None if the field is not set or
holds a different branch.
Sourcepub fn set_tensor<T: Into<Box<TensorboardTensor>>>(self, v: T) -> Self
pub fn set_tensor<T: Into<Box<TensorboardTensor>>>(self, v: T) -> Self
Sets the value of value
to hold a Tensor.
Note that all the setters affecting value are
mutually exclusive.
Trait Implementations§
Source§impl Clone for TimeSeriesDataPoint
impl Clone for TimeSeriesDataPoint
Source§fn clone(&self) -> TimeSeriesDataPoint
fn clone(&self) -> TimeSeriesDataPoint
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 TimeSeriesDataPoint
impl Debug for TimeSeriesDataPoint
Source§impl Default for TimeSeriesDataPoint
impl Default for TimeSeriesDataPoint
Source§fn default() -> TimeSeriesDataPoint
fn default() -> TimeSeriesDataPoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeSeriesDataPointwhere
TimeSeriesDataPoint: Default,
impl<'de> Deserialize<'de> for TimeSeriesDataPointwhere
TimeSeriesDataPoint: Default,
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 Message for TimeSeriesDataPoint
impl Message for TimeSeriesDataPoint
Source§impl PartialEq for TimeSeriesDataPoint
impl PartialEq for TimeSeriesDataPoint
Source§impl Serialize for TimeSeriesDataPoint
impl Serialize for TimeSeriesDataPoint
impl StructuralPartialEq for TimeSeriesDataPoint
Auto Trait Implementations§
impl Freeze for TimeSeriesDataPoint
impl RefUnwindSafe for TimeSeriesDataPoint
impl Send for TimeSeriesDataPoint
impl Sync for TimeSeriesDataPoint
impl Unpin for TimeSeriesDataPoint
impl UnwindSafe for TimeSeriesDataPoint
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