#[non_exhaustive]pub struct CreateTensorboardRunRequest {
pub parent: String,
pub tensorboard_run: Option<TensorboardRun>,
pub tensorboard_run_id: String,
/* private fields */
}Available on crate feature
tensorboard-service only.Expand description
Request message for TensorboardService.CreateTensorboardRun.
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.parent: StringRequired. The resource name of the TensorboardExperiment to create the
TensorboardRun in. Format:
projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}
tensorboard_run: Option<TensorboardRun>Required. The TensorboardRun to create.
tensorboard_run_id: StringRequired. The ID to use for the Tensorboard run, which becomes the final component of the Tensorboard run’s resource name.
This value should be 1-128 characters, and valid characters
are /[a-z][0-9]-/.
Implementations§
Source§impl CreateTensorboardRunRequest
impl CreateTensorboardRunRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_tensorboard_run<T>(self, v: T) -> Selfwhere
T: Into<TensorboardRun>,
pub fn set_tensorboard_run<T>(self, v: T) -> Selfwhere
T: Into<TensorboardRun>,
Sets the value of tensorboard_run.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::TensorboardRun;
let x = CreateTensorboardRunRequest::new().set_tensorboard_run(TensorboardRun::default()/* use setters */);Sourcepub fn set_or_clear_tensorboard_run<T>(self, v: Option<T>) -> Selfwhere
T: Into<TensorboardRun>,
pub fn set_or_clear_tensorboard_run<T>(self, v: Option<T>) -> Selfwhere
T: Into<TensorboardRun>,
Sets or clears the value of tensorboard_run.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::TensorboardRun;
let x = CreateTensorboardRunRequest::new().set_or_clear_tensorboard_run(Some(TensorboardRun::default()/* use setters */));
let x = CreateTensorboardRunRequest::new().set_or_clear_tensorboard_run(None::<TensorboardRun>);Sourcepub fn set_tensorboard_run_id<T: Into<String>>(self, v: T) -> Self
pub fn set_tensorboard_run_id<T: Into<String>>(self, v: T) -> Self
Sets the value of tensorboard_run_id.
§Example
ⓘ
let x = CreateTensorboardRunRequest::new().set_tensorboard_run_id("example");Trait Implementations§
Source§impl Clone for CreateTensorboardRunRequest
impl Clone for CreateTensorboardRunRequest
Source§fn clone(&self) -> CreateTensorboardRunRequest
fn clone(&self) -> CreateTensorboardRunRequest
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 CreateTensorboardRunRequest
impl Debug for CreateTensorboardRunRequest
Source§impl Default for CreateTensorboardRunRequest
impl Default for CreateTensorboardRunRequest
Source§fn default() -> CreateTensorboardRunRequest
fn default() -> CreateTensorboardRunRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateTensorboardRunRequest
Auto Trait Implementations§
impl Freeze for CreateTensorboardRunRequest
impl RefUnwindSafe for CreateTensorboardRunRequest
impl Send for CreateTensorboardRunRequest
impl Sync for CreateTensorboardRunRequest
impl Unpin for CreateTensorboardRunRequest
impl UnwindSafe for CreateTensorboardRunRequest
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