#[non_exhaustive]pub struct SecurityPolicyRulePreconfiguredWafConfig {
pub exclusions: Vec<SecurityPolicyRulePreconfiguredWafConfigExclusion>,
/* 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.exclusions: Vec<SecurityPolicyRulePreconfiguredWafConfigExclusion>A list of exclusions to apply during preconfigured WAF evaluation.
Implementations§
Source§impl SecurityPolicyRulePreconfiguredWafConfig
impl SecurityPolicyRulePreconfiguredWafConfig
pub fn new() -> Self
Sourcepub fn set_exclusions<T, V>(self, v: T) -> Self
pub fn set_exclusions<T, V>(self, v: T) -> Self
Sets the value of exclusions.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyRulePreconfiguredWafConfigExclusion;
let x = SecurityPolicyRulePreconfiguredWafConfig::new()
.set_exclusions([
SecurityPolicyRulePreconfiguredWafConfigExclusion::default()/* use setters */,
SecurityPolicyRulePreconfiguredWafConfigExclusion::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SecurityPolicyRulePreconfiguredWafConfig
impl Clone for SecurityPolicyRulePreconfiguredWafConfig
Source§fn clone(&self) -> SecurityPolicyRulePreconfiguredWafConfig
fn clone(&self) -> SecurityPolicyRulePreconfiguredWafConfig
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 SecurityPolicyRulePreconfiguredWafConfig
impl Default for SecurityPolicyRulePreconfiguredWafConfig
Source§fn default() -> SecurityPolicyRulePreconfiguredWafConfig
fn default() -> SecurityPolicyRulePreconfiguredWafConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRulePreconfiguredWafConfig
impl PartialEq for SecurityPolicyRulePreconfiguredWafConfig
Source§fn eq(&self, other: &SecurityPolicyRulePreconfiguredWafConfig) -> bool
fn eq(&self, other: &SecurityPolicyRulePreconfiguredWafConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRulePreconfiguredWafConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyRulePreconfiguredWafConfig
impl RefUnwindSafe for SecurityPolicyRulePreconfiguredWafConfig
impl Send for SecurityPolicyRulePreconfiguredWafConfig
impl Sync for SecurityPolicyRulePreconfiguredWafConfig
impl Unpin for SecurityPolicyRulePreconfiguredWafConfig
impl UnwindSafe for SecurityPolicyRulePreconfiguredWafConfig
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