Struct google_api_proto::google::cloud::compute::v1::SecurityPolicyRuleNetworkMatcher
source · pub struct SecurityPolicyRuleNetworkMatcher {
pub dest_ip_ranges: Vec<String>,
pub dest_ports: Vec<String>,
pub ip_protocols: Vec<String>,
pub src_asns: Vec<u32>,
pub src_ip_ranges: Vec<String>,
pub src_ports: Vec<String>,
pub src_region_codes: Vec<String>,
pub user_defined_fields: Vec<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>,
}
Expand description
Represents a match condition that incoming network traffic is evaluated against.
Fields§
§dest_ip_ranges: Vec<String>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
dest_ports: Vec<String>
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. “80”) or range (e.g. “0-1023”).
ip_protocols: Vec<String>
IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. “6”), range (e.g. “253-254”), or one of the following protocol names: “tcp”, “udp”, “icmp”, “esp”, “ah”, “ipip”, or “sctp”.
src_asns: Vec<u32>
BGP Autonomous System Number associated with the source IP address.
src_ip_ranges: Vec<String>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
src_ports: Vec<String>
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. “80”) or range (e.g. “0-1023”).
src_region_codes: Vec<String>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
user_defined_fields: Vec<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
User-defined fields. Each element names a defined field and lists the matching values for that field.
Trait Implementations§
source§impl Clone for SecurityPolicyRuleNetworkMatcher
impl Clone for SecurityPolicyRuleNetworkMatcher
source§fn clone(&self) -> SecurityPolicyRuleNetworkMatcher
fn clone(&self) -> SecurityPolicyRuleNetworkMatcher
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SecurityPolicyRuleNetworkMatcher
impl Message for SecurityPolicyRuleNetworkMatcher
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SecurityPolicyRuleNetworkMatcher
impl PartialEq for SecurityPolicyRuleNetworkMatcher
source§fn eq(&self, other: &SecurityPolicyRuleNetworkMatcher) -> bool
fn eq(&self, other: &SecurityPolicyRuleNetworkMatcher) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityPolicyRuleNetworkMatcher
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleNetworkMatcher
impl RefUnwindSafe for SecurityPolicyRuleNetworkMatcher
impl Send for SecurityPolicyRuleNetworkMatcher
impl Sync for SecurityPolicyRuleNetworkMatcher
impl Unpin for SecurityPolicyRuleNetworkMatcher
impl UnwindSafe for SecurityPolicyRuleNetworkMatcher
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request