pub struct AlertRuleConfig {
pub port: Option<u16>,
pub process: Option<String>,
pub state: Option<String>,
pub connections_gt: Option<usize>,
pub action: String,
}Expand description
A single alert rule from the TOML config.
Fields§
§port: Option<u16>§process: Option<String>§state: Option<String>§connections_gt: Option<usize>§action: StringTrait Implementations§
Source§impl Clone for AlertRuleConfig
impl Clone for AlertRuleConfig
Source§fn clone(&self) -> AlertRuleConfig
fn clone(&self) -> AlertRuleConfig
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 AlertRuleConfig
impl Debug for AlertRuleConfig
Source§impl Default for AlertRuleConfig
impl Default for AlertRuleConfig
Source§fn default() -> AlertRuleConfig
fn default() -> AlertRuleConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertRuleConfigwhere
AlertRuleConfig: Default,
impl<'de> Deserialize<'de> for AlertRuleConfigwhere
AlertRuleConfig: Default,
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 AlertRuleConfig
impl RefUnwindSafe for AlertRuleConfig
impl Send for AlertRuleConfig
impl Sync for AlertRuleConfig
impl Unpin for AlertRuleConfig
impl UnsafeUnpin for AlertRuleConfig
impl UnwindSafe for AlertRuleConfig
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