#[non_exhaustive]pub struct AddTrialMeasurementRequest {
pub trial_name: String,
pub measurement: Option<Measurement>,
/* private fields */
}Available on crate feature
vizier-service only.Expand description
Request message for VizierService.AddTrialMeasurement.
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.trial_name: StringRequired. The name of the trial to add measurement.
Format:
projects/{project}/locations/{location}/studies/{study}/trials/{trial}
measurement: Option<Measurement>Required. The measurement to be added to a Trial.
Implementations§
Source§impl AddTrialMeasurementRequest
impl AddTrialMeasurementRequest
pub fn new() -> Self
Sourcepub fn set_trial_name<T: Into<String>>(self, v: T) -> Self
pub fn set_trial_name<T: Into<String>>(self, v: T) -> Self
Sets the value of trial_name.
§Example
ⓘ
let x = AddTrialMeasurementRequest::new().set_trial_name("example");Sourcepub fn set_measurement<T>(self, v: T) -> Selfwhere
T: Into<Measurement>,
pub fn set_measurement<T>(self, v: T) -> Selfwhere
T: Into<Measurement>,
Sets the value of measurement.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Measurement;
let x = AddTrialMeasurementRequest::new().set_measurement(Measurement::default()/* use setters */);Sourcepub fn set_or_clear_measurement<T>(self, v: Option<T>) -> Selfwhere
T: Into<Measurement>,
pub fn set_or_clear_measurement<T>(self, v: Option<T>) -> Selfwhere
T: Into<Measurement>,
Sets or clears the value of measurement.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Measurement;
let x = AddTrialMeasurementRequest::new().set_or_clear_measurement(Some(Measurement::default()/* use setters */));
let x = AddTrialMeasurementRequest::new().set_or_clear_measurement(None::<Measurement>);Trait Implementations§
Source§impl Clone for AddTrialMeasurementRequest
impl Clone for AddTrialMeasurementRequest
Source§fn clone(&self) -> AddTrialMeasurementRequest
fn clone(&self) -> AddTrialMeasurementRequest
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 AddTrialMeasurementRequest
impl Debug for AddTrialMeasurementRequest
Source§impl Default for AddTrialMeasurementRequest
impl Default for AddTrialMeasurementRequest
Source§fn default() -> AddTrialMeasurementRequest
fn default() -> AddTrialMeasurementRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddTrialMeasurementRequest
impl Message for AddTrialMeasurementRequest
impl StructuralPartialEq for AddTrialMeasurementRequest
Auto Trait Implementations§
impl Freeze for AddTrialMeasurementRequest
impl RefUnwindSafe for AddTrialMeasurementRequest
impl Send for AddTrialMeasurementRequest
impl Sync for AddTrialMeasurementRequest
impl Unpin for AddTrialMeasurementRequest
impl UnwindSafe for AddTrialMeasurementRequest
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