Struct google_api_proto::google::cloud::compute::v1::RouterStatusNatStatusNatRuleStatus
source · pub struct RouterStatusNatStatusNatRuleStatus {
pub active_nat_ips: Vec<String>,
pub drain_nat_ips: Vec<String>,
pub min_extra_ips_needed: Option<i32>,
pub num_vm_endpoints_with_nat_mappings: Option<i32>,
pub rule_number: Option<i32>,
}
Expand description
Status of a NAT Rule contained in this NAT.
Fields§
§active_nat_ips: Vec<String>
A list of active IPs for NAT. Example: [“1.1.1.1”, “179.12.26.133”].
drain_nat_ips: Vec<String>
A list of IPs for NAT that are in drain mode. Example: [“1.1.1.1”, “179.12.26.133”].
min_extra_ips_needed: Option<i32>
The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.
num_vm_endpoints_with_nat_mappings: Option<i32>
Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
rule_number: Option<i32>
Rule number of the rule.
Implementations§
source§impl RouterStatusNatStatusNatRuleStatus
impl RouterStatusNatStatusNatRuleStatus
sourcepub fn min_extra_ips_needed(&self) -> i32
pub fn min_extra_ips_needed(&self) -> i32
Returns the value of min_extra_ips_needed
, or the default value if min_extra_ips_needed
is unset.
sourcepub fn num_vm_endpoints_with_nat_mappings(&self) -> i32
pub fn num_vm_endpoints_with_nat_mappings(&self) -> i32
Returns the value of num_vm_endpoints_with_nat_mappings
, or the default value if num_vm_endpoints_with_nat_mappings
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 RouterStatusNatStatusNatRuleStatus
impl Clone for RouterStatusNatStatusNatRuleStatus
source§fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for RouterStatusNatStatusNatRuleStatus
impl Message for RouterStatusNatStatusNatRuleStatus
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 RouterStatusNatStatusNatRuleStatus
impl PartialEq for RouterStatusNatStatusNatRuleStatus
source§fn eq(&self, other: &RouterStatusNatStatusNatRuleStatus) -> bool
fn eq(&self, other: &RouterStatusNatStatusNatRuleStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouterStatusNatStatusNatRuleStatus
Auto Trait Implementations§
impl Freeze for RouterStatusNatStatusNatRuleStatus
impl RefUnwindSafe for RouterStatusNatStatusNatRuleStatus
impl Send for RouterStatusNatStatusNatRuleStatus
impl Sync for RouterStatusNatStatusNatRuleStatus
impl Unpin for RouterStatusNatStatusNatRuleStatus
impl UnwindSafe for RouterStatusNatStatusNatRuleStatus
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