#[non_exhaustive]pub struct FilterTerm {
pub name: String,
pub from: Vec<MatchCondition>,
pub then: FilterActions,
}Expand description
A term of a filter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§from: Vec<MatchCondition>§then: FilterActionsImplementations§
Source§impl FilterTerm
impl FilterTerm
Sourcepub fn condition(&self, name: &str) -> Option<&MatchCondition>
pub fn condition(&self, name: &str) -> Option<&MatchCondition>
The from condition called name, e.g. "destination-port".
Trait Implementations§
Source§impl Clone for FilterTerm
impl Clone for FilterTerm
Source§impl Debug for FilterTerm
impl Debug for FilterTerm
impl Eq for FilterTerm
Source§impl PartialEq for FilterTerm
impl PartialEq for FilterTerm
impl StructuralPartialEq for FilterTerm
Auto Trait Implementations§
impl Forget for FilterTerm
impl Freeze for FilterTerm
impl Move for FilterTerm
impl RefUnwindSafe for FilterTerm
impl Send for FilterTerm
impl Sync for FilterTerm
impl Unpin for FilterTerm
impl UnsafeUnpin for FilterTerm
impl UnwindSafe for FilterTerm
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