pub struct NatRule {
pub rule_type: NatType,
pub acl: Option<String>,
pub pool: Option<NatPool>,
pub interface_overload: bool,
pub static_entry: Option<NatStaticEntry>,
}Expand description
A NAT rule (ip nat inside source …).
Fields§
§rule_type: NatType§acl: Option<String>Source ACL name (for dynamic/PAT NAT).
pool: Option<NatPool>Address pool (resolved even when declared after the ip nat statement).
interface_overload: boolTrue when interface <if> overload is used instead of a pool.
static_entry: Option<NatStaticEntry>Static NAT mapping entry, if this is a static rule.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NatRule
impl<'de> Deserialize<'de> for NatRule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NatRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NatRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NatRule
impl Serialize for NatRule
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 NatRule
impl RefUnwindSafe for NatRule
impl Send for NatRule
impl Sync for NatRule
impl Unpin for NatRule
impl UnsafeUnpin for NatRule
impl UnwindSafe for NatRule
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