#[non_exhaustive]pub struct Rule<'a> {Show 13 fields
pub process: &'a str,
pub via: Option<&'a str>,
pub remote_addresses: Option<&'a str>,
pub remote_hosts: Option<RemoteHosts<'a>>,
pub remote_domains: Option<RemoteDomains<'a>>,
pub remote: Option<Remote<'a>>,
pub direction: Option<Direction<'a>>,
pub action: Option<Action<'a>>,
pub priority: Option<Priority<'a>>,
pub disabled: Option<bool>,
pub ports: Option<Ports<'a>>,
pub protocol: Option<&'a str>,
pub notes: Option<&'a str>,
}
Expand description
A specific rule.
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.process: &'a str
§via: Option<&'a str>
§remote_addresses: Option<&'a str>
§remote_hosts: Option<RemoteHosts<'a>>
§remote_domains: Option<RemoteDomains<'a>>
§remote: Option<Remote<'a>>
§direction: Option<Direction<'a>>
§action: Option<Action<'a>>
§priority: Option<Priority<'a>>
§disabled: Option<bool>
§ports: Option<Ports<'a>>
§protocol: Option<&'a str>
§notes: Option<&'a str>
Trait Implementations§
source§impl<'de: 'a, 'a> Deserialize<'de> for Rule<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Rule<'a>
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
source§impl<'a> PartialEq for Rule<'a>
impl<'a> PartialEq for Rule<'a>
impl<'a> StructuralPartialEq for Rule<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Rule<'a>
impl<'a> Send for Rule<'a>
impl<'a> Sync for Rule<'a>
impl<'a> Unpin for Rule<'a>
impl<'a> UnwindSafe for Rule<'a>
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