pub struct AddressRule {
pub action: Action,
pub direction: Option<Direction>,
pub interface: Option<String>,
pub from: Option<Address>,
pub to: Option<Address>,
pub port: Option<u16>,
pub proto: Option<Protocol>,
}Fields§
§action: Action§direction: Option<Direction>§interface: Option<String>§from: Option<Address>§to: Option<Address>§port: Option<u16>§proto: Option<Protocol>Trait Implementations§
Source§impl Clone for AddressRule
impl Clone for AddressRule
Source§fn clone(&self) -> AddressRule
fn clone(&self) -> AddressRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddressRule
impl Debug for AddressRule
Source§impl<'de> Deserialize<'de> for AddressRule
impl<'de> Deserialize<'de> for AddressRule
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
impl Eq for AddressRule
Source§impl PartialEq for AddressRule
impl PartialEq for AddressRule
Source§fn eq(&self, other: &AddressRule) -> bool
fn eq(&self, other: &AddressRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AddressRule
impl Serialize for AddressRule
impl StructuralPartialEq for AddressRule
Auto Trait Implementations§
impl Freeze for AddressRule
impl RefUnwindSafe for AddressRule
impl Send for AddressRule
impl Sync for AddressRule
impl Unpin for AddressRule
impl UnsafeUnpin for AddressRule
impl UnwindSafe for AddressRule
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