#[non_exhaustive]pub struct Study {
pub name: String,
pub display_name: String,
pub study_spec: Option<StudySpec>,
pub state: State,
pub create_time: Option<Timestamp>,
pub inactive_reason: String,
/* private fields */
}Available on crate feature
vizier-service only.Expand description
A message representing a Study.
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: StringOutput only. The name of a study. The study’s globally unique identifier.
Format: projects/{project}/locations/{location}/studies/{study}
display_name: StringRequired. Describes the Study, default value is empty string.
study_spec: Option<StudySpec>Required. Configuration of the Study.
state: StateOutput only. The detailed state of a Study.
create_time: Option<Timestamp>Output only. Time at which the study was created.
inactive_reason: StringOutput only. A human readable reason why the Study is inactive. This should be empty if a study is ACTIVE or COMPLETED.
Implementations§
Source§impl Study
impl Study
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_study_spec<T>(self, v: T) -> Self
pub fn set_study_spec<T>(self, v: T) -> Self
Sets the value of study_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::StudySpec;
let x = Study::new().set_study_spec(StudySpec::default()/* use setters */);Sourcepub fn set_or_clear_study_spec<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_study_spec<T>(self, v: Option<T>) -> Self
Sets or clears the value of study_spec.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::StudySpec;
let x = Study::new().set_or_clear_study_spec(Some(StudySpec::default()/* use setters */));
let x = Study::new().set_or_clear_study_spec(None::<StudySpec>);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Study::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Study::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Study::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_inactive_reason<T: Into<String>>(self, v: T) -> Self
pub fn set_inactive_reason<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for Study
Auto Trait Implementations§
impl Freeze for Study
impl RefUnwindSafe for Study
impl Send for Study
impl Sync for Study
impl Unpin for Study
impl UnwindSafe for Study
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