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<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
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