#[non_exhaustive]pub struct PreviewFeature {
pub activation_status: Option<ActivationStatus>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub rollout_operation: Option<PreviewFeatureRolloutOperation>,
pub self_link: Option<String>,
pub status: Option<PreviewFeatureStatus>,
/* private fields */
}preview-features only.Expand description
Represents a single Google Compute Engine preview feature.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.activation_status: Option<ActivationStatus>Specifies whether the feature is enabled or disabled.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
description: Option<String>Output only. [Output Only] Description of the feature.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output only] The type of the feature. Always “compute#previewFeature” for preview features.
name: Option<String>Name of the feature.
rollout_operation: Option<PreviewFeatureRolloutOperation>Rollout operation of the feature.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
status: Option<PreviewFeatureStatus>Output only. [Output only] Status of the feature.
Implementations§
Source§impl PreviewFeature
impl PreviewFeature
pub fn new() -> Self
Sourcepub fn set_activation_status<T>(self, v: T) -> Selfwhere
T: Into<ActivationStatus>,
pub fn set_activation_status<T>(self, v: T) -> Selfwhere
T: Into<ActivationStatus>,
Sets the value of activation_status.
§Example
use google_cloud_compute_v1::model::preview_feature::ActivationStatus;
let x0 = PreviewFeature::new().set_activation_status(ActivationStatus::Disabled);
let x1 = PreviewFeature::new().set_activation_status(ActivationStatus::Enabled);Sourcepub fn set_or_clear_activation_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ActivationStatus>,
pub fn set_or_clear_activation_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ActivationStatus>,
Sets or clears the value of activation_status.
§Example
use google_cloud_compute_v1::model::preview_feature::ActivationStatus;
let x0 = PreviewFeature::new().set_or_clear_activation_status(Some(ActivationStatus::Disabled));
let x1 = PreviewFeature::new().set_or_clear_activation_status(Some(ActivationStatus::Enabled));
let x_none = PreviewFeature::new().set_or_clear_activation_status(None::<ActivationStatus>);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = PreviewFeature::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = PreviewFeature::new().set_or_clear_creation_timestamp(Some("example"));
let x = PreviewFeature::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
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 = PreviewFeature::new().set_or_clear_description(Some("example"));
let x = PreviewFeature::new().set_or_clear_description(None::<String>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_rollout_operation<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureRolloutOperation>,
pub fn set_rollout_operation<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureRolloutOperation>,
Sets the value of rollout_operation.
§Example
use google_cloud_compute_v1::model::PreviewFeatureRolloutOperation;
let x = PreviewFeature::new().set_rollout_operation(PreviewFeatureRolloutOperation::default()/* use setters */);Sourcepub fn set_or_clear_rollout_operation<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureRolloutOperation>,
pub fn set_or_clear_rollout_operation<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureRolloutOperation>,
Sets or clears the value of rollout_operation.
§Example
use google_cloud_compute_v1::model::PreviewFeatureRolloutOperation;
let x = PreviewFeature::new().set_or_clear_rollout_operation(Some(PreviewFeatureRolloutOperation::default()/* use setters */));
let x = PreviewFeature::new().set_or_clear_rollout_operation(None::<PreviewFeatureRolloutOperation>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<PreviewFeatureStatus>,
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreviewFeatureStatus>,
Trait Implementations§
Source§impl Clone for PreviewFeature
impl Clone for PreviewFeature
Source§fn clone(&self) -> PreviewFeature
fn clone(&self) -> PreviewFeature
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more