pub enum TrafficFilter {
Network {
network_ids: Vec<EntityId>,
match_opposite: bool,
mac_addresses: Vec<String>,
ports: Option<PortSpec>,
},
IpAddress {
addresses: Vec<IpSpec>,
match_opposite: bool,
mac_addresses: Vec<String>,
ports: Option<PortSpec>,
},
MacAddress {
mac_addresses: Vec<String>,
ports: Option<PortSpec>,
},
Port {
ports: PortSpec,
},
Region {
regions: Vec<String>,
ports: Option<PortSpec>,
},
Application {
application_ids: Vec<i64>,
ports: Option<PortSpec>,
},
ApplicationCategory {
category_ids: Vec<i64>,
ports: Option<PortSpec>,
},
Domain {
domains: Vec<String>,
ports: Option<PortSpec>,
},
Other {
raw_type: String,
},
}Expand description
Traffic filter applied to a source or destination.
Variants§
Network
Fields
IpAddress
Fields
MacAddress
Port
Region
Application
ApplicationCategory
Domain
Other
Catch-all for filter types not yet modeled.
Implementations§
Trait Implementations§
Source§impl Clone for TrafficFilter
impl Clone for TrafficFilter
Source§fn clone(&self) -> TrafficFilter
fn clone(&self) -> TrafficFilter
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 TrafficFilter
impl Debug for TrafficFilter
Source§impl<'de> Deserialize<'de> for TrafficFilter
impl<'de> Deserialize<'de> for TrafficFilter
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 TrafficFilter
impl RefUnwindSafe for TrafficFilter
impl Send for TrafficFilter
impl Sync for TrafficFilter
impl Unpin for TrafficFilter
impl UnsafeUnpin for TrafficFilter
impl UnwindSafe for TrafficFilter
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