pub struct Filter {
pub dest_range: Option<String>,
pub ip_protocol: Option<String>,
pub protocol_version: Option<String>,
pub src_range: Option<String>,
}Expand description
Filter matches L4 traffic.
This type is not used in any activity, and only used as part of another schema.
Fields§
§dest_range: Option<String>Optional. The destination IP range of outgoing packets that this policy-based route applies to. Default is “0.0.0.0/0” if protocol version is IPv4 and “::/0” if protocol version is IPv6.
ip_protocol: Option<String>Optional. The IP protocol that this policy-based route applies to. Valid values are ‘TCP’, ‘UDP’, and ‘ALL’. Default is ‘ALL’.
protocol_version: Option<String>Required. Internet protocol versions this policy-based route applies to. IPV4 and IPV6 is supported.
src_range: Option<String>Optional. The source IP range of outgoing packets that this policy-based route applies to. Default is “0.0.0.0/0” if protocol version is IPv4 and “::/0” if protocol version is IPv6.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
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 Part for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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