pub struct DdosProtectionRule {Show 13 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>>,
}
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.
Implementations§
Source§impl DdosProtectionRule
impl DdosProtectionRule
pub fn new() -> DdosProtectionRule
Trait Implementations§
Source§impl Clone for DdosProtectionRule
impl Clone for DdosProtectionRule
Source§fn clone(&self) -> DdosProtectionRule
fn clone(&self) -> DdosProtectionRule
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 DdosProtectionRule
impl Debug for DdosProtectionRule
Source§impl Default for DdosProtectionRule
impl Default for DdosProtectionRule
Source§fn default() -> DdosProtectionRule
fn default() -> DdosProtectionRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DdosProtectionRule
impl<'de> Deserialize<'de> for DdosProtectionRule
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
Source§impl PartialEq for DdosProtectionRule
impl PartialEq for DdosProtectionRule
Source§impl Serialize for DdosProtectionRule
impl Serialize for DdosProtectionRule
impl StructuralPartialEq for DdosProtectionRule
Auto Trait Implementations§
impl Freeze for DdosProtectionRule
impl RefUnwindSafe for DdosProtectionRule
impl Send for DdosProtectionRule
impl Sync for DdosProtectionRule
impl Unpin for DdosProtectionRule
impl UnwindSafe for DdosProtectionRule
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