pub struct AclEntry {
pub sequence: Option<u32>,
pub action: AclAction,
pub protocol: Option<AclProtocol>,
pub src: AclMatch,
pub dst: Option<AclMatch>,
pub src_port: Option<AclPort>,
pub dst_port: Option<AclPort>,
pub established: bool,
pub log: bool,
pub remark: Option<String>,
}Expand description
A single ACE (access control entry) line.
Fields§
§sequence: Option<u32>Explicit sequence number if present (10 permit …).
action: AclAction§protocol: Option<AclProtocol>§src: AclMatch§dst: Option<AclMatch>§src_port: Option<AclPort>§dst_port: Option<AclPort>§established: boolestablished keyword (TCP only).
log: boollog keyword.
remark: Option<String>remark <text> line.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclEntry
impl<'de> Deserialize<'de> for AclEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AclEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AclEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AclEntry
impl Serialize for AclEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AclEntry
impl RefUnwindSafe for AclEntry
impl Send for AclEntry
impl Sync for AclEntry
impl Unpin for AclEntry
impl UnsafeUnpin for AclEntry
impl UnwindSafe for AclEntry
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