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