pub struct DdosProtectionRuleWithStats {Show 14 fields
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
pub action: Option<String>,
pub customer_id: Option<String>,
pub service_id: Option<String>,
pub source_ip: Option<String>,
pub country_code: Option<String>,
pub host: Option<String>,
pub asn: Option<String>,
pub source_ip_prefix: Option<String>,
pub additional_attributes: Option<Vec<String>>,
pub traffic_stats: Option<Box<DdosProtectionTrafficStats>>,
}Fields§
§created_at: Option<String>Date and time in ISO 8601 format.
updated_at: Option<String>Date and time in ISO 8601 format.
id: Option<String>Unique ID of the rule.
name: Option<String>A human-readable name for the rule.
action: Option<String>Action types for a rule. Supported action values are default, block, log, off. The default action value follows the current protection mode of the associated service.
customer_id: Option<String>Alphanumeric string identifying the customer.
service_id: Option<String>Alphanumeric string identifying the service.
source_ip: Option<String>Source IP address attribute.
country_code: Option<String>Country code attribute.
host: Option<String>Host attribute.
asn: Option<String>ASN attribute.
source_ip_prefix: Option<String>Source IP prefix attribute.
additional_attributes: Option<Vec<String>>Attribute category for additional, unlisted attributes used in a rule.
traffic_stats: Option<Box<DdosProtectionTrafficStats>>Implementations§
Source§impl DdosProtectionRuleWithStats
impl DdosProtectionRuleWithStats
pub fn new() -> DdosProtectionRuleWithStats
Trait Implementations§
Source§impl Clone for DdosProtectionRuleWithStats
impl Clone for DdosProtectionRuleWithStats
Source§fn clone(&self) -> DdosProtectionRuleWithStats
fn clone(&self) -> DdosProtectionRuleWithStats
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 DdosProtectionRuleWithStats
impl Debug for DdosProtectionRuleWithStats
Source§impl Default for DdosProtectionRuleWithStats
impl Default for DdosProtectionRuleWithStats
Source§fn default() -> DdosProtectionRuleWithStats
fn default() -> DdosProtectionRuleWithStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DdosProtectionRuleWithStats
impl<'de> Deserialize<'de> for DdosProtectionRuleWithStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DdosProtectionRuleWithStats
Auto Trait Implementations§
impl Freeze for DdosProtectionRuleWithStats
impl RefUnwindSafe for DdosProtectionRuleWithStats
impl Send for DdosProtectionRuleWithStats
impl Sync for DdosProtectionRuleWithStats
impl Unpin for DdosProtectionRuleWithStats
impl UnwindSafe for DdosProtectionRuleWithStats
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