#[non_exhaustive]pub struct TimeSeriesDataPoint {
pub wall_time: Option<Timestamp>,
pub step: i64,
pub value: Option<Value>,
/* private fields */
}tensorboard-service only.Expand description
A TensorboardTimeSeries data point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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>(self, v: T) -> Self
pub fn set_wall_time<T>(self, v: T) -> Self
Sets the value of wall_time.
Sourcepub fn set_or_clear_wall_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_wall_time<T>(self, v: Option<T>) -> Self
Sets or clears 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more