#[non_exhaustive]pub struct PreviewFeatureStatus {
pub description: Option<String>,
pub help_link: Option<String>,
pub release_status: Option<PreviewFeatureStatusReleaseStatus>,
/* private fields */
}Available on crate feature
preview-features only.Expand description
[Output Only] The status of the feature.
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.description: Option<String>Output only. [Output Only] The description of the feature.
help_link: Option<String>Output only. [Output Only] Link to the public documentation for the feature.
release_status: Option<PreviewFeatureStatusReleaseStatus>Implementations§
Source§impl PreviewFeatureStatus
impl PreviewFeatureStatus
pub fn new() -> Self
Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = PreviewFeatureStatus::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
ⓘ
let x = PreviewFeatureStatus::new().set_or_clear_description(Some("example"));
let x = PreviewFeatureStatus::new().set_or_clear_description(None::<String>);Sourcepub fn set_help_link<T>(self, v: T) -> Self
pub fn set_help_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_help_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_help_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_release_status<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureStatusReleaseStatus>,
pub fn set_release_status<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureStatusReleaseStatus>,
Sets the value of release_status.
§Example
ⓘ
use google_cloud_compute_v1::model::PreviewFeatureStatusReleaseStatus;
let x = PreviewFeatureStatus::new().set_release_status(PreviewFeatureStatusReleaseStatus::default()/* use setters */);Sourcepub fn set_or_clear_release_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureStatusReleaseStatus>,
pub fn set_or_clear_release_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureStatusReleaseStatus>,
Sets or clears the value of release_status.
§Example
ⓘ
use google_cloud_compute_v1::model::PreviewFeatureStatusReleaseStatus;
let x = PreviewFeatureStatus::new().set_or_clear_release_status(Some(PreviewFeatureStatusReleaseStatus::default()/* use setters */));
let x = PreviewFeatureStatus::new().set_or_clear_release_status(None::<PreviewFeatureStatusReleaseStatus>);Trait Implementations§
Source§impl Clone for PreviewFeatureStatus
impl Clone for PreviewFeatureStatus
Source§fn clone(&self) -> PreviewFeatureStatus
fn clone(&self) -> PreviewFeatureStatus
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 PreviewFeatureStatus
impl Debug for PreviewFeatureStatus
Source§impl Default for PreviewFeatureStatus
impl Default for PreviewFeatureStatus
Source§fn default() -> PreviewFeatureStatus
fn default() -> PreviewFeatureStatus
Returns the “default value” for a type. Read more
Source§impl Message for PreviewFeatureStatus
impl Message for PreviewFeatureStatus
Source§impl PartialEq for PreviewFeatureStatus
impl PartialEq for PreviewFeatureStatus
impl StructuralPartialEq for PreviewFeatureStatus
Auto Trait Implementations§
impl Freeze for PreviewFeatureStatus
impl RefUnwindSafe for PreviewFeatureStatus
impl Send for PreviewFeatureStatus
impl Sync for PreviewFeatureStatus
impl Unpin for PreviewFeatureStatus
impl UnwindSafe for PreviewFeatureStatus
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