pub struct GuardDefinition {
pub name: String,
pub guard_type: GuardType,
pub enabled: bool,
pub action: GuardAction,
pub config: GuardTypeConfig,
}Expand description
Guard definition
Fields§
§name: StringGuard name
guard_type: GuardTypeGuard type
enabled: boolWhether this guard is enabled
action: GuardActionAction when triggered
config: GuardTypeConfigGuard-specific configuration
Trait Implementations§
Source§impl Clone for GuardDefinition
impl Clone for GuardDefinition
Source§fn clone(&self) -> GuardDefinition
fn clone(&self) -> GuardDefinition
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 GuardDefinition
impl Debug for GuardDefinition
Source§impl<'de> Deserialize<'de> for GuardDefinition
impl<'de> Deserialize<'de> for GuardDefinition
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
Auto Trait Implementations§
impl Freeze for GuardDefinition
impl RefUnwindSafe for GuardDefinition
impl Send for GuardDefinition
impl Sync for GuardDefinition
impl Unpin for GuardDefinition
impl UnwindSafe for GuardDefinition
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