#[non_exhaustive]pub struct Metadata {
pub max_step: i64,
pub max_wall_time: Option<Timestamp>,
pub max_blob_sequence_length: i64,
/* private fields */
}Available on crate feature
tensorboard-service only.Expand description
Describes metadata for a TensorboardTimeSeries.
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.max_step: i64Output only. Max step index of all data points within a TensorboardTimeSeries.
max_wall_time: Option<Timestamp>Output only. Max wall clock timestamp of all data points within a TensorboardTimeSeries.
max_blob_sequence_length: i64Output only. The largest blob sequence length (number of blobs) of all data points in this time series, if its ValueType is BLOB_SEQUENCE.
Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Self
Sourcepub fn set_max_step<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_step<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_max_wall_time<T>(self, v: T) -> Self
pub fn set_max_wall_time<T>(self, v: T) -> Self
Sets the value of max_wall_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Metadata::new().set_max_wall_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_max_wall_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_wall_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_wall_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Metadata::new().set_or_clear_max_wall_time(Some(Timestamp::default()/* use setters */));
let x = Metadata::new().set_or_clear_max_wall_time(None::<Timestamp>);Sourcepub fn set_max_blob_sequence_length<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_blob_sequence_length<T: Into<i64>>(self, v: T) -> Self
Sets the value of max_blob_sequence_length.
§Example
ⓘ
let x = Metadata::new().set_max_blob_sequence_length(42);Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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