#[non_exhaustive]pub struct TimeSeriesData {
pub tensorboard_time_series_id: String,
pub value_type: ValueType,
pub values: Vec<TimeSeriesDataPoint>,
/* private fields */
}Available on crate feature
tensorboard-service only.Expand description
All the data stored in 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.tensorboard_time_series_id: StringRequired. The ID of the TensorboardTimeSeries, which will become the final component of the TensorboardTimeSeries’ resource name
value_type: ValueTypeRequired. Immutable. The value type of this time series. All the values in this time series data must match this value type.
values: Vec<TimeSeriesDataPoint>Required. Data points in this time series.
Implementations§
Source§impl TimeSeriesData
impl TimeSeriesData
pub fn new() -> Self
Sourcepub fn set_tensorboard_time_series_id<T: Into<String>>(self, v: T) -> Self
pub fn set_tensorboard_time_series_id<T: Into<String>>(self, v: T) -> Self
Sets the value of tensorboard_time_series_id.
§Example
ⓘ
let x = TimeSeriesData::new().set_tensorboard_time_series_id("example");Sourcepub fn set_value_type<T: Into<ValueType>>(self, v: T) -> Self
pub fn set_value_type<T: Into<ValueType>>(self, v: T) -> Self
Sets the value of value_type.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::tensorboard_time_series::ValueType;
let x0 = TimeSeriesData::new().set_value_type(ValueType::Scalar);
let x1 = TimeSeriesData::new().set_value_type(ValueType::Tensor);
let x2 = TimeSeriesData::new().set_value_type(ValueType::BlobSequence);Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TimeSeriesData
impl Clone for TimeSeriesData
Source§fn clone(&self) -> TimeSeriesData
fn clone(&self) -> TimeSeriesData
Returns a duplicate 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 TimeSeriesData
impl Debug for TimeSeriesData
Source§impl Default for TimeSeriesData
impl Default for TimeSeriesData
Source§fn default() -> TimeSeriesData
fn default() -> TimeSeriesData
Returns the “default value” for a type. Read more
Source§impl Message for TimeSeriesData
impl Message for TimeSeriesData
Source§impl PartialEq for TimeSeriesData
impl PartialEq for TimeSeriesData
impl StructuralPartialEq for TimeSeriesData
Auto Trait Implementations§
impl Freeze for TimeSeriesData
impl RefUnwindSafe for TimeSeriesData
impl Send for TimeSeriesData
impl Sync for TimeSeriesData
impl Unpin for TimeSeriesData
impl UnwindSafe for TimeSeriesData
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