#[non_exhaustive]pub struct CompleteTrialRequest {
pub name: String,
pub final_measurement: Option<Measurement>,
pub trial_infeasible: bool,
pub infeasible_reason: String,
/* private fields */
}Available on crate feature
vizier-service only.Expand description
Request message for VizierService.CompleteTrial.
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.name: StringRequired. The Trial’s name.
Format:
projects/{project}/locations/{location}/studies/{study}/trials/{trial}
final_measurement: Option<Measurement>Optional. If provided, it will be used as the completed Trial’s final_measurement; Otherwise, the service will auto-select a previously reported measurement as the final-measurement
trial_infeasible: boolOptional. True if the Trial cannot be run with the given Parameter, and final_measurement will be ignored.
infeasible_reason: StringOptional. A human readable reason why the trial was infeasible. This should
only be provided if trial_infeasible is true.
Implementations§
Source§impl CompleteTrialRequest
impl CompleteTrialRequest
pub fn new() -> Self
Sourcepub fn set_final_measurement<T>(self, v: T) -> Selfwhere
T: Into<Measurement>,
pub fn set_final_measurement<T>(self, v: T) -> Selfwhere
T: Into<Measurement>,
Sets the value of final_measurement.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Measurement;
let x = CompleteTrialRequest::new().set_final_measurement(Measurement::default()/* use setters */);Sourcepub fn set_or_clear_final_measurement<T>(self, v: Option<T>) -> Selfwhere
T: Into<Measurement>,
pub fn set_or_clear_final_measurement<T>(self, v: Option<T>) -> Selfwhere
T: Into<Measurement>,
Sets or clears the value of final_measurement.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::Measurement;
let x = CompleteTrialRequest::new().set_or_clear_final_measurement(Some(Measurement::default()/* use setters */));
let x = CompleteTrialRequest::new().set_or_clear_final_measurement(None::<Measurement>);Sourcepub fn set_trial_infeasible<T: Into<bool>>(self, v: T) -> Self
pub fn set_trial_infeasible<T: Into<bool>>(self, v: T) -> Self
Sets the value of trial_infeasible.
§Example
ⓘ
let x = CompleteTrialRequest::new().set_trial_infeasible(true);Sourcepub fn set_infeasible_reason<T: Into<String>>(self, v: T) -> Self
pub fn set_infeasible_reason<T: Into<String>>(self, v: T) -> Self
Sets the value of infeasible_reason.
§Example
ⓘ
let x = CompleteTrialRequest::new().set_infeasible_reason("example");Trait Implementations§
Source§impl Clone for CompleteTrialRequest
impl Clone for CompleteTrialRequest
Source§fn clone(&self) -> CompleteTrialRequest
fn clone(&self) -> CompleteTrialRequest
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 CompleteTrialRequest
impl Debug for CompleteTrialRequest
Source§impl Default for CompleteTrialRequest
impl Default for CompleteTrialRequest
Source§fn default() -> CompleteTrialRequest
fn default() -> CompleteTrialRequest
Returns the “default value” for a type. Read more
Source§impl Message for CompleteTrialRequest
impl Message for CompleteTrialRequest
Source§impl PartialEq for CompleteTrialRequest
impl PartialEq for CompleteTrialRequest
impl StructuralPartialEq for CompleteTrialRequest
Auto Trait Implementations§
impl Freeze for CompleteTrialRequest
impl RefUnwindSafe for CompleteTrialRequest
impl Send for CompleteTrialRequest
impl Sync for CompleteTrialRequest
impl Unpin for CompleteTrialRequest
impl UnwindSafe for CompleteTrialRequest
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