#[non_exhaustive]pub struct SecurityPolicyRuleMatcherConfig {
pub src_ip_ranges: Vec<String>,
/* 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.src_ip_ranges: Vec<String>CIDR IP address range. Maximum number of src_ip_ranges allowed is 10.
Implementations§
Source§impl SecurityPolicyRuleMatcherConfig
impl SecurityPolicyRuleMatcherConfig
pub fn new() -> Self
Sourcepub fn set_src_ip_ranges<T, V>(self, v: T) -> Self
pub fn set_src_ip_ranges<T, V>(self, v: T) -> Self
Sets the value of src_ip_ranges.
§Example
ⓘ
let x = SecurityPolicyRuleMatcherConfig::new().set_src_ip_ranges(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for SecurityPolicyRuleMatcherConfig
impl Clone for SecurityPolicyRuleMatcherConfig
Source§fn clone(&self) -> SecurityPolicyRuleMatcherConfig
fn clone(&self) -> SecurityPolicyRuleMatcherConfig
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 SecurityPolicyRuleMatcherConfig
impl Default for SecurityPolicyRuleMatcherConfig
Source§fn default() -> SecurityPolicyRuleMatcherConfig
fn default() -> SecurityPolicyRuleMatcherConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRuleMatcherConfig
impl PartialEq for SecurityPolicyRuleMatcherConfig
Source§fn eq(&self, other: &SecurityPolicyRuleMatcherConfig) -> bool
fn eq(&self, other: &SecurityPolicyRuleMatcherConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRuleMatcherConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleMatcherConfig
impl RefUnwindSafe for SecurityPolicyRuleMatcherConfig
impl Send for SecurityPolicyRuleMatcherConfig
impl Sync for SecurityPolicyRuleMatcherConfig
impl Unpin for SecurityPolicyRuleMatcherConfig
impl UnwindSafe for SecurityPolicyRuleMatcherConfig
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