Enum google_api_proto::google::cloud::compute::v1::router_nat::SourceSubnetworkIpRangesToNat
source · #[repr(i32)]pub enum SourceSubnetworkIpRangesToNat {
UndefinedSourceSubnetworkIpRangesToNat = 0,
AllSubnetworksAllIpRanges = 179_964_376,
AllSubnetworksAllPrimaryIpRanges = 185_573_819,
ListOfSubnetworks = 517_542_270,
}
Expand description
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region.
Variants§
UndefinedSourceSubnetworkIpRangesToNat = 0
A value indicating that the enum field is not set.
AllSubnetworksAllIpRanges = 179_964_376
All the IP ranges in every Subnetwork are allowed to Nat.
AllSubnetworksAllPrimaryIpRanges = 185_573_819
All the primary IP ranges in every Subnetwork are allowed to Nat.
ListOfSubnetworks = 517_542_270
A list of Subnetworks are allowed to Nat (specified in the field subnetwork below)
Implementations§
source§impl SourceSubnetworkIpRangesToNat
impl SourceSubnetworkIpRangesToNat
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of SourceSubnetworkIpRangesToNat
.
sourcepub fn from_i32(value: i32) -> Option<SourceSubnetworkIpRangesToNat>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SourceSubnetworkIpRangesToNat>
Converts an i32
to a SourceSubnetworkIpRangesToNat
, or None
if value
is not a valid variant.
source§impl SourceSubnetworkIpRangesToNat
impl SourceSubnetworkIpRangesToNat
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SourceSubnetworkIpRangesToNat
impl Clone for SourceSubnetworkIpRangesToNat
source§fn clone(&self) -> SourceSubnetworkIpRangesToNat
fn clone(&self) -> SourceSubnetworkIpRangesToNat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SourceSubnetworkIpRangesToNat
impl Default for SourceSubnetworkIpRangesToNat
source§fn default() -> SourceSubnetworkIpRangesToNat
fn default() -> SourceSubnetworkIpRangesToNat
source§impl From<SourceSubnetworkIpRangesToNat> for i32
impl From<SourceSubnetworkIpRangesToNat> for i32
source§fn from(value: SourceSubnetworkIpRangesToNat) -> i32
fn from(value: SourceSubnetworkIpRangesToNat) -> i32
source§impl Hash for SourceSubnetworkIpRangesToNat
impl Hash for SourceSubnetworkIpRangesToNat
source§impl Ord for SourceSubnetworkIpRangesToNat
impl Ord for SourceSubnetworkIpRangesToNat
source§fn cmp(&self, other: &SourceSubnetworkIpRangesToNat) -> Ordering
fn cmp(&self, other: &SourceSubnetworkIpRangesToNat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SourceSubnetworkIpRangesToNat
impl PartialEq for SourceSubnetworkIpRangesToNat
source§fn eq(&self, other: &SourceSubnetworkIpRangesToNat) -> bool
fn eq(&self, other: &SourceSubnetworkIpRangesToNat) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SourceSubnetworkIpRangesToNat
impl PartialOrd for SourceSubnetworkIpRangesToNat
source§fn partial_cmp(&self, other: &SourceSubnetworkIpRangesToNat) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceSubnetworkIpRangesToNat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SourceSubnetworkIpRangesToNat
impl TryFrom<i32> for SourceSubnetworkIpRangesToNat
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(
value: i32,
) -> Result<SourceSubnetworkIpRangesToNat, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<SourceSubnetworkIpRangesToNat, UnknownEnumValue>
impl Copy for SourceSubnetworkIpRangesToNat
impl Eq for SourceSubnetworkIpRangesToNat
impl StructuralPartialEq for SourceSubnetworkIpRangesToNat
Auto Trait Implementations§
impl Freeze for SourceSubnetworkIpRangesToNat
impl RefUnwindSafe for SourceSubnetworkIpRangesToNat
impl Send for SourceSubnetworkIpRangesToNat
impl Sync for SourceSubnetworkIpRangesToNat
impl Unpin for SourceSubnetworkIpRangesToNat
impl UnwindSafe for SourceSubnetworkIpRangesToNat
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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