#[non_exhaustive]pub struct SecurityPolicyDdosProtectionConfig {
pub ddos_protection: Option<DdosProtection>,
/* private fields */
}Available on crate features
organization-security-policies or region-security-policies or security-policies 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.ddos_protection: Option<DdosProtection>Implementations§
Source§impl SecurityPolicyDdosProtectionConfig
impl SecurityPolicyDdosProtectionConfig
pub fn new() -> Self
Sourcepub fn set_ddos_protection<T>(self, v: T) -> Selfwhere
T: Into<DdosProtection>,
pub fn set_ddos_protection<T>(self, v: T) -> Selfwhere
T: Into<DdosProtection>,
Sets the value of ddos_protection.
§Example
ⓘ
use google_cloud_compute_v1::model::security_policy_ddos_protection_config::DdosProtection;
let x0 = SecurityPolicyDdosProtectionConfig::new().set_ddos_protection(DdosProtection::AdvancedPreview);
let x1 = SecurityPolicyDdosProtectionConfig::new().set_ddos_protection(DdosProtection::Standard);Sourcepub fn set_or_clear_ddos_protection<T>(self, v: Option<T>) -> Selfwhere
T: Into<DdosProtection>,
pub fn set_or_clear_ddos_protection<T>(self, v: Option<T>) -> Selfwhere
T: Into<DdosProtection>,
Sets or clears the value of ddos_protection.
§Example
ⓘ
use google_cloud_compute_v1::model::security_policy_ddos_protection_config::DdosProtection;
let x0 = SecurityPolicyDdosProtectionConfig::new().set_or_clear_ddos_protection(Some(DdosProtection::AdvancedPreview));
let x1 = SecurityPolicyDdosProtectionConfig::new().set_or_clear_ddos_protection(Some(DdosProtection::Standard));
let x_none = SecurityPolicyDdosProtectionConfig::new().set_or_clear_ddos_protection(None::<DdosProtection>);Trait Implementations§
Source§impl Clone for SecurityPolicyDdosProtectionConfig
impl Clone for SecurityPolicyDdosProtectionConfig
Source§fn clone(&self) -> SecurityPolicyDdosProtectionConfig
fn clone(&self) -> SecurityPolicyDdosProtectionConfig
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 SecurityPolicyDdosProtectionConfig
impl Default for SecurityPolicyDdosProtectionConfig
Source§fn default() -> SecurityPolicyDdosProtectionConfig
fn default() -> SecurityPolicyDdosProtectionConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyDdosProtectionConfig
impl PartialEq for SecurityPolicyDdosProtectionConfig
Source§fn eq(&self, other: &SecurityPolicyDdosProtectionConfig) -> bool
fn eq(&self, other: &SecurityPolicyDdosProtectionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyDdosProtectionConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyDdosProtectionConfig
impl RefUnwindSafe for SecurityPolicyDdosProtectionConfig
impl Send for SecurityPolicyDdosProtectionConfig
impl Sync for SecurityPolicyDdosProtectionConfig
impl Unpin for SecurityPolicyDdosProtectionConfig
impl UnwindSafe for SecurityPolicyDdosProtectionConfig
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