#[non_exhaustive]pub struct ProjectsSetCloudArmorTierRequest {
pub cloud_armor_tier: Option<CloudArmorTier>,
/* private fields */
}Available on crate feature
projects only.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.cloud_armor_tier: Option<CloudArmorTier>Managed protection tier to be set.
Implementations§
Source§impl ProjectsSetCloudArmorTierRequest
impl ProjectsSetCloudArmorTierRequest
pub fn new() -> Self
Sourcepub fn set_cloud_armor_tier<T>(self, v: T) -> Selfwhere
T: Into<CloudArmorTier>,
pub fn set_cloud_armor_tier<T>(self, v: T) -> Selfwhere
T: Into<CloudArmorTier>,
Sets the value of cloud_armor_tier.
§Example
ⓘ
use google_cloud_compute_v1::model::projects_set_cloud_armor_tier_request::CloudArmorTier;
let x0 = ProjectsSetCloudArmorTierRequest::new().set_cloud_armor_tier(CloudArmorTier::CaEnterprisePaygo);
let x1 = ProjectsSetCloudArmorTierRequest::new().set_cloud_armor_tier(CloudArmorTier::CaStandard);Sourcepub fn set_or_clear_cloud_armor_tier<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudArmorTier>,
pub fn set_or_clear_cloud_armor_tier<T>(self, v: Option<T>) -> Selfwhere
T: Into<CloudArmorTier>,
Sets or clears the value of cloud_armor_tier.
§Example
ⓘ
use google_cloud_compute_v1::model::projects_set_cloud_armor_tier_request::CloudArmorTier;
let x0 = ProjectsSetCloudArmorTierRequest::new().set_or_clear_cloud_armor_tier(Some(CloudArmorTier::CaEnterprisePaygo));
let x1 = ProjectsSetCloudArmorTierRequest::new().set_or_clear_cloud_armor_tier(Some(CloudArmorTier::CaStandard));
let x_none = ProjectsSetCloudArmorTierRequest::new().set_or_clear_cloud_armor_tier(None::<CloudArmorTier>);Trait Implementations§
Source§impl Clone for ProjectsSetCloudArmorTierRequest
impl Clone for ProjectsSetCloudArmorTierRequest
Source§fn clone(&self) -> ProjectsSetCloudArmorTierRequest
fn clone(&self) -> ProjectsSetCloudArmorTierRequest
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 Default for ProjectsSetCloudArmorTierRequest
impl Default for ProjectsSetCloudArmorTierRequest
Source§fn default() -> ProjectsSetCloudArmorTierRequest
fn default() -> ProjectsSetCloudArmorTierRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProjectsSetCloudArmorTierRequest
impl PartialEq for ProjectsSetCloudArmorTierRequest
Source§fn eq(&self, other: &ProjectsSetCloudArmorTierRequest) -> bool
fn eq(&self, other: &ProjectsSetCloudArmorTierRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProjectsSetCloudArmorTierRequest
Auto Trait Implementations§
impl Freeze for ProjectsSetCloudArmorTierRequest
impl RefUnwindSafe for ProjectsSetCloudArmorTierRequest
impl Send for ProjectsSetCloudArmorTierRequest
impl Sync for ProjectsSetCloudArmorTierRequest
impl Unpin for ProjectsSetCloudArmorTierRequest
impl UnwindSafe for ProjectsSetCloudArmorTierRequest
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