pub struct DdosProtectionAttributeStats {
pub name: Option<String>,
pub values: Option<Vec<DdosProtectionAttributeValue>>,
}
Fields§
§name: Option<String>
Name of an attribute type used in traffic stats. Currently, supported values are source_ip, country_code, host, asn, source_ip_prefix, user_agent, method_path.
values: Option<Vec<DdosProtectionAttributeValue>>
Values for traffic attribute.
Implementations§
Source§impl DdosProtectionAttributeStats
impl DdosProtectionAttributeStats
pub fn new() -> DdosProtectionAttributeStats
Trait Implementations§
Source§impl Clone for DdosProtectionAttributeStats
impl Clone for DdosProtectionAttributeStats
Source§fn clone(&self) -> DdosProtectionAttributeStats
fn clone(&self) -> DdosProtectionAttributeStats
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 DdosProtectionAttributeStats
impl Debug for DdosProtectionAttributeStats
Source§impl Default for DdosProtectionAttributeStats
impl Default for DdosProtectionAttributeStats
Source§fn default() -> DdosProtectionAttributeStats
fn default() -> DdosProtectionAttributeStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DdosProtectionAttributeStats
impl<'de> Deserialize<'de> for DdosProtectionAttributeStats
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 DdosProtectionAttributeStats
impl PartialEq for DdosProtectionAttributeStats
Source§fn eq(&self, other: &DdosProtectionAttributeStats) -> bool
fn eq(&self, other: &DdosProtectionAttributeStats) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DdosProtectionAttributeStats
Auto Trait Implementations§
impl Freeze for DdosProtectionAttributeStats
impl RefUnwindSafe for DdosProtectionAttributeStats
impl Send for DdosProtectionAttributeStats
impl Sync for DdosProtectionAttributeStats
impl Unpin for DdosProtectionAttributeStats
impl UnwindSafe for DdosProtectionAttributeStats
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