#[non_exhaustive]pub struct PreconfiguredWafSet {
pub expression_sets: Vec<WafExpressionSet>,
/* private fields */
}Available on crate features
organization-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.expression_sets: Vec<WafExpressionSet>List of entities that are currently supported for WAF rules.
Implementations§
Source§impl PreconfiguredWafSet
impl PreconfiguredWafSet
pub fn new() -> Self
Sourcepub fn set_expression_sets<T, V>(self, v: T) -> Self
pub fn set_expression_sets<T, V>(self, v: T) -> Self
Sets the value of expression_sets.
§Example
ⓘ
use google_cloud_compute_v1::model::WafExpressionSet;
let x = PreconfiguredWafSet::new()
.set_expression_sets([
WafExpressionSet::default()/* use setters */,
WafExpressionSet::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PreconfiguredWafSet
impl Clone for PreconfiguredWafSet
Source§fn clone(&self) -> PreconfiguredWafSet
fn clone(&self) -> PreconfiguredWafSet
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 Debug for PreconfiguredWafSet
impl Debug for PreconfiguredWafSet
Source§impl Default for PreconfiguredWafSet
impl Default for PreconfiguredWafSet
Source§fn default() -> PreconfiguredWafSet
fn default() -> PreconfiguredWafSet
Returns the “default value” for a type. Read more
Source§impl Message for PreconfiguredWafSet
impl Message for PreconfiguredWafSet
Source§impl PartialEq for PreconfiguredWafSet
impl PartialEq for PreconfiguredWafSet
impl StructuralPartialEq for PreconfiguredWafSet
Auto Trait Implementations§
impl Freeze for PreconfiguredWafSet
impl RefUnwindSafe for PreconfiguredWafSet
impl Send for PreconfiguredWafSet
impl Sync for PreconfiguredWafSet
impl Unpin for PreconfiguredWafSet
impl UnwindSafe for PreconfiguredWafSet
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