Struct google_api_proto::google::cloud::compute::v1::VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
source · pub struct VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings {
pub drain_nat_ip_port_ranges: Vec<String>,
pub nat_ip_port_ranges: Vec<String>,
pub num_total_drain_nat_ports: Option<i32>,
pub num_total_nat_ports: Option<i32>,
pub rule_number: Option<i32>,
}
Expand description
Contains information of NAT Mappings provided by a NAT Rule.
Fields§
§drain_nat_ip_port_ranges: Vec<String>
List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: [“2.2.2.2:12345-12355”, “1.1.1.1:2234-2234”].
nat_ip_port_ranges: Vec<String>
A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: [“2.2.2.2:12345-12355”, “1.1.1.1:2234-2234”].
num_total_drain_nat_ports: Option<i32>
Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges.
num_total_nat_ports: Option<i32>
Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges.
rule_number: Option<i32>
Rule number of the NAT Rule.
Implementations§
source§impl VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
sourcepub fn num_total_nat_ports(&self) -> i32
pub fn num_total_nat_ports(&self) -> i32
Returns the value of num_total_nat_ports
, or the default value if num_total_nat_ports
is unset.
sourcepub fn num_total_drain_nat_ports(&self) -> i32
pub fn num_total_drain_nat_ports(&self) -> i32
Returns the value of num_total_drain_nat_ports
, or the default value if num_total_drain_nat_ports
is unset.
sourcepub fn rule_number(&self) -> i32
pub fn rule_number(&self) -> i32
Returns the value of rule_number
, or the default value if rule_number
is unset.
Trait Implementations§
source§impl Clone for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl Clone for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
source§fn clone(&self) -> VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
fn clone(&self) -> VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl Message for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
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 VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl PartialEq for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
source§fn eq(
&self,
other: &VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings,
) -> bool
fn eq( &self, other: &VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings, ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
Auto Trait Implementations§
impl Freeze for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl RefUnwindSafe for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl Send for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl Sync for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl Unpin for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
impl UnwindSafe for VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings
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