#[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
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PreviewFeature
impl Debug for PreviewFeature
Source§impl Default for PreviewFeature
impl Default for PreviewFeature
Source§fn default() -> PreviewFeature
fn default() -> PreviewFeature
Source§impl Message for PreviewFeature
impl Message for PreviewFeature
Source§impl PartialEq for PreviewFeature
impl PartialEq for PreviewFeature
impl StructuralPartialEq for PreviewFeature
Auto Trait Implementations§
impl Freeze for PreviewFeature
impl RefUnwindSafe for PreviewFeature
impl Send for PreviewFeature
impl Sync for PreviewFeature
impl Unpin for PreviewFeature
impl UnsafeUnpin for PreviewFeature
impl UnwindSafe for PreviewFeature
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request