pub struct NetworkProtectRuleSetCreate {
pub default_action: NetworkProtectRuleSetDefaultAction,
pub rules: Option<Vec<NetworkProtectRule>>,
}Expand description
NetworkProtectRuleSetCreate : Attributes accepted when creating a rule set.
Fields§
§default_action: NetworkProtectRuleSetDefaultAction§rules: Option<Vec<NetworkProtectRule>>Rules in evaluation order; the first match wins.
Implementations§
Source§impl NetworkProtectRuleSetCreate
impl NetworkProtectRuleSetCreate
Sourcepub fn new(
default_action: NetworkProtectRuleSetDefaultAction,
) -> NetworkProtectRuleSetCreate
pub fn new( default_action: NetworkProtectRuleSetDefaultAction, ) -> NetworkProtectRuleSetCreate
Attributes accepted when creating a rule set.
Trait Implementations§
Source§impl Clone for NetworkProtectRuleSetCreate
impl Clone for NetworkProtectRuleSetCreate
Source§impl Debug for NetworkProtectRuleSetCreate
impl Debug for NetworkProtectRuleSetCreate
Source§impl<'de> Deserialize<'de> for NetworkProtectRuleSetCreate
impl<'de> Deserialize<'de> for NetworkProtectRuleSetCreate
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 NetworkProtectRuleSetCreate
Auto Trait Implementations§
impl Freeze for NetworkProtectRuleSetCreate
impl RefUnwindSafe for NetworkProtectRuleSetCreate
impl Send for NetworkProtectRuleSetCreate
impl Sync for NetworkProtectRuleSetCreate
impl Unpin for NetworkProtectRuleSetCreate
impl UnsafeUnpin for NetworkProtectRuleSetCreate
impl UnwindSafe for NetworkProtectRuleSetCreate
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