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