#[non_exhaustive]pub struct WafExpressionSet {
pub aliases: Vec<String>,
pub expressions: Vec<WafExpressionSetExpression>,
pub id: Option<String>,
/* 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.aliases: Vec<String>A list of alternate IDs. The format should be:
- E.g. XSS-stable Generic suffix like “stable” is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can’t be used for more than one entity set.
expressions: Vec<WafExpressionSetExpression>List of available expressions.
id: Option<String>Google specified expression set ID. The format should be:
- E.g. XSS-20170329 required
Implementations§
Source§impl WafExpressionSet
impl WafExpressionSet
pub fn new() -> Self
Sourcepub fn set_aliases<T, V>(self, v: T) -> Self
pub fn set_aliases<T, V>(self, v: T) -> Self
Sourcepub fn set_expressions<T, V>(self, v: T) -> Self
pub fn set_expressions<T, V>(self, v: T) -> Self
Sets the value of expressions.
§Example
ⓘ
use google_cloud_compute_v1::model::WafExpressionSetExpression;
let x = WafExpressionSet::new()
.set_expressions([
WafExpressionSetExpression::default()/* use setters */,
WafExpressionSetExpression::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for WafExpressionSet
impl Clone for WafExpressionSet
Source§fn clone(&self) -> WafExpressionSet
fn clone(&self) -> WafExpressionSet
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 WafExpressionSet
impl Debug for WafExpressionSet
Source§impl Default for WafExpressionSet
impl Default for WafExpressionSet
Source§fn default() -> WafExpressionSet
fn default() -> WafExpressionSet
Returns the “default value” for a type. Read more
Source§impl Message for WafExpressionSet
impl Message for WafExpressionSet
Source§impl PartialEq for WafExpressionSet
impl PartialEq for WafExpressionSet
impl StructuralPartialEq for WafExpressionSet
Auto Trait Implementations§
impl Freeze for WafExpressionSet
impl RefUnwindSafe for WafExpressionSet
impl Send for WafExpressionSet
impl Sync for WafExpressionSet
impl Unpin for WafExpressionSet
impl UnwindSafe for WafExpressionSet
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