#[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 */
}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
Sets the value of display_name.
Sourcepub fn set_study_spec<T: Into<Option<StudySpec>>>(self, v: T) -> Self
pub fn set_study_spec<T: Into<Option<StudySpec>>>(self, v: T) -> Self
Sets the value of study_spec.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_inactive_reason<T: Into<String>>(self, v: T) -> Self
pub fn set_inactive_reason<T: Into<String>>(self, v: T) -> Self
Sets the value of inactive_reason.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Study
impl<'de> Deserialize<'de> for Study
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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