pub struct RouterNatRule {
pub action: Option<RouterNatRuleAction>,
pub description: Option<String>,
pub match_: Option<String>,
pub rule_number: Option<u32>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§action: Option<RouterNatRuleAction>
The action to be enforced for traffic that matches this rule.
description: Option<String>
An optional description of this rule.
match_: Option<String>
CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding action
is enforced. The following examples are valid match expressions for public NAT: “inIpRange(destination.ip, ‘1.1.0.0/16’) || inIpRange(destination.ip, ‘2.2.0.0/16’)” “destination.ip == ‘1.1.0.1’ || destination.ip == ‘8.8.8.8’” The following example is a valid match expression for private NAT: “nexthop.hub == ‘//networkconnectivity.googleapis.com/projects/my-project/locations/global/hubs/hub-1’”
rule_number: Option<u32>
An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT.
Trait Implementations§
Source§impl Clone for RouterNatRule
impl Clone for RouterNatRule
Source§fn clone(&self) -> RouterNatRule
fn clone(&self) -> RouterNatRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RouterNatRule
impl Debug for RouterNatRule
Source§impl Default for RouterNatRule
impl Default for RouterNatRule
Source§fn default() -> RouterNatRule
fn default() -> RouterNatRule
Source§impl<'de> Deserialize<'de> for RouterNatRule
impl<'de> Deserialize<'de> for RouterNatRule
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>,
Source§impl Serialize for RouterNatRule
impl Serialize for RouterNatRule
impl Part for RouterNatRule
Auto Trait Implementations§
impl Freeze for RouterNatRule
impl RefUnwindSafe for RouterNatRule
impl Send for RouterNatRule
impl Sync for RouterNatRule
impl Unpin for RouterNatRule
impl UnwindSafe for RouterNatRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more