pub struct FilterRuleConfig {Show 15 fields
pub op: String,
pub proto: Vec<String>,
pub src_ip: Vec<String>,
pub dst_ip: Vec<String>,
pub ip: Vec<String>,
pub src_port: Vec<String>,
pub dst_port: Vec<String>,
pub port: Vec<String>,
pub flow_id: Vec<String>,
pub from: Option<String>,
pub to: Option<String>,
pub tcp_flags: Option<String>,
pub min_len: Option<u32>,
pub max_len: Option<u32>,
pub unidirectional: bool,
}Expand description
A single rule entry within [[filter.rules]] in the TOML config.
The op field controls how this rule combines with the accumulated result:
"and" (default), "or", or "not".
Fields§
§op: StringLogical operator: "and", "or", or "not".
proto: Vec<String>§src_ip: Vec<String>§dst_ip: Vec<String>§ip: Vec<String>§src_port: Vec<String>§dst_port: Vec<String>§port: Vec<String>§flow_id: Vec<String>§from: Option<String>§to: Option<String>§tcp_flags: Option<String>§min_len: Option<u32>§max_len: Option<u32>§unidirectional: boolTrait Implementations§
Source§impl Debug for FilterRuleConfig
impl Debug for FilterRuleConfig
Source§impl Default for FilterRuleConfig
impl Default for FilterRuleConfig
Source§fn default() -> FilterRuleConfig
fn default() -> FilterRuleConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilterRuleConfig
impl<'de> Deserialize<'de> for FilterRuleConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for FilterRuleConfig
impl RefUnwindSafe for FilterRuleConfig
impl Send for FilterRuleConfig
impl Sync for FilterRuleConfig
impl Unpin for FilterRuleConfig
impl UnsafeUnpin for FilterRuleConfig
impl UnwindSafe for FilterRuleConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more