pub enum Destination {
Any,
Cidr(IpNetwork),
Domain(String),
DomainSuffix(String),
Group(DestinationGroup),
}Expand description
Traffic destination filter for a Rule.
The Cidr, Domain, and DomainSuffix leaves carry their canonical
string form (e.g. "10.0.0.0/8", "example.com"); the local network
engine re-parses and validates them into its richer internal types at
load time.
Variants§
Any
Match any destination.
Cidr(IpNetwork)
IP address or CIDR block (e.g. "1.2.3.4", "10.0.0.0/8").
Domain(String)
Exact domain name (e.g. "example.com").
DomainSuffix(String)
Domain suffix — the apex and any subdomain of it.
Group(DestinationGroup)
A pre-defined destination group.
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 Destination
impl Debug for Destination
Source§impl<'de> Deserialize<'de> for Destination
impl<'de> Deserialize<'de> for Destination
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 Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
Source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Destination
impl Serialize for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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