#[non_exhaustive]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>,
/* private fields */
}routers only.Expand description
Status of a NAT Rule contained in this NAT.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.active_nat_ips: Vec<String>Output only. A list of active IPs for NAT. Example: [“1.1.1.1”, “179.12.26.133”].
drain_nat_ips: Vec<String>Output only. 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>Output only. 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>Output only. Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.
rule_number: Option<i32>Output only. Rule number of the rule.
Implementations§
Source§impl RouterStatusNatStatusNatRuleStatus
impl RouterStatusNatStatusNatRuleStatus
Sourcepub fn set_active_nat_ips<T, V>(self, v: T) -> Self
pub fn set_active_nat_ips<T, V>(self, v: T) -> Self
Sets the value of active_nat_ips.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_active_nat_ips(["a", "b", "c"]);Sourcepub fn set_drain_nat_ips<T, V>(self, v: T) -> Self
pub fn set_drain_nat_ips<T, V>(self, v: T) -> Self
Sets the value of drain_nat_ips.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_drain_nat_ips(["a", "b", "c"]);Sourcepub fn set_min_extra_ips_needed<T>(self, v: T) -> Self
pub fn set_min_extra_ips_needed<T>(self, v: T) -> Self
Sets the value of min_extra_ips_needed.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_min_extra_ips_needed(42);Sourcepub fn set_or_clear_min_extra_ips_needed<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_extra_ips_needed<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_extra_ips_needed.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_min_extra_ips_needed(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_min_extra_ips_needed(None::<i32>);Sourcepub fn set_num_vm_endpoints_with_nat_mappings<T>(self, v: T) -> Self
pub fn set_num_vm_endpoints_with_nat_mappings<T>(self, v: T) -> Self
Sets the value of num_vm_endpoints_with_nat_mappings.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_num_vm_endpoints_with_nat_mappings(42);Sourcepub fn set_or_clear_num_vm_endpoints_with_nat_mappings<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_num_vm_endpoints_with_nat_mappings<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of num_vm_endpoints_with_nat_mappings.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_num_vm_endpoints_with_nat_mappings(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_num_vm_endpoints_with_nat_mappings(None::<i32>);Sourcepub fn set_rule_number<T>(self, v: T) -> Self
pub fn set_rule_number<T>(self, v: T) -> Self
Sets the value of rule_number.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_rule_number(42);Sourcepub fn set_or_clear_rule_number<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rule_number<T>(self, v: Option<T>) -> Self
Sets or clears the value of rule_number.
§Example
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_rule_number(Some(42));
let x = RouterStatusNatStatusNatRuleStatus::new().set_or_clear_rule_number(None::<i32>);Trait Implementations§
Source§impl Clone for RouterStatusNatStatusNatRuleStatus
impl Clone for RouterStatusNatStatusNatRuleStatus
Source§fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
fn clone(&self) -> RouterStatusNatStatusNatRuleStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RouterStatusNatStatusNatRuleStatus
impl Default for RouterStatusNatStatusNatRuleStatus
Source§fn default() -> RouterStatusNatStatusNatRuleStatus
fn default() -> RouterStatusNatStatusNatRuleStatus
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 UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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