#[non_exhaustive]pub struct SecurityPolicyRuleRateLimitOptionsThreshold {
pub count: Option<i32>,
pub interval_sec: Option<i32>,
/* 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.count: Option<i32>Number of HTTP(S) requests for calculating the threshold.
interval_sec: Option<i32>Interval over which the threshold is computed.
Implementations§
Source§impl SecurityPolicyRuleRateLimitOptionsThreshold
impl SecurityPolicyRuleRateLimitOptionsThreshold
pub fn new() -> Self
Sourcepub fn set_or_clear_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_count<T>(self, v: Option<T>) -> Self
Sourcepub fn set_interval_sec<T>(self, v: T) -> Self
pub fn set_interval_sec<T>(self, v: T) -> Self
Sets the value of interval_sec.
§Example
ⓘ
let x = SecurityPolicyRuleRateLimitOptionsThreshold::new().set_interval_sec(42);Sourcepub fn set_or_clear_interval_sec<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interval_sec<T>(self, v: Option<T>) -> Self
Sets or clears the value of interval_sec.
§Example
ⓘ
let x = SecurityPolicyRuleRateLimitOptionsThreshold::new().set_or_clear_interval_sec(Some(42));
let x = SecurityPolicyRuleRateLimitOptionsThreshold::new().set_or_clear_interval_sec(None::<i32>);Trait Implementations§
Source§impl Clone for SecurityPolicyRuleRateLimitOptionsThreshold
impl Clone for SecurityPolicyRuleRateLimitOptionsThreshold
Source§fn clone(&self) -> SecurityPolicyRuleRateLimitOptionsThreshold
fn clone(&self) -> SecurityPolicyRuleRateLimitOptionsThreshold
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 SecurityPolicyRuleRateLimitOptionsThreshold
impl Default for SecurityPolicyRuleRateLimitOptionsThreshold
Source§fn default() -> SecurityPolicyRuleRateLimitOptionsThreshold
fn default() -> SecurityPolicyRuleRateLimitOptionsThreshold
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRuleRateLimitOptionsThreshold
impl PartialEq for SecurityPolicyRuleRateLimitOptionsThreshold
Source§fn eq(&self, other: &SecurityPolicyRuleRateLimitOptionsThreshold) -> bool
fn eq(&self, other: &SecurityPolicyRuleRateLimitOptionsThreshold) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRuleRateLimitOptionsThreshold
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleRateLimitOptionsThreshold
impl RefUnwindSafe for SecurityPolicyRuleRateLimitOptionsThreshold
impl Send for SecurityPolicyRuleRateLimitOptionsThreshold
impl Sync for SecurityPolicyRuleRateLimitOptionsThreshold
impl Unpin for SecurityPolicyRuleRateLimitOptionsThreshold
impl UnwindSafe for SecurityPolicyRuleRateLimitOptionsThreshold
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