Enum google_api_proto::google::cloud::compute::v1::url_maps_validate_request::LoadBalancingSchemes
source · #[repr(i32)]pub enum LoadBalancingSchemes {
UndefinedLoadBalancingSchemes = 0,
External = 35_607_499,
ExternalManaged = 512_006_923,
LoadBalancingSchemeUnspecified = 526_507_452,
}
Expand description
Variants§
UndefinedLoadBalancingSchemes = 0
A value indicating that the enum field is not set.
External = 35_607_499
Signifies that this will be used for classic Application Load Balancers.
ExternalManaged = 512_006_923
Signifies that this will be used for Envoy-based global external Application Load Balancers.
LoadBalancingSchemeUnspecified = 526_507_452
If unspecified, the validation will try to infer the scheme from the backend service resources this Url map references. If the inference is not possible, EXTERNAL will be used as the default type.
Implementations§
source§impl LoadBalancingSchemes
impl LoadBalancingSchemes
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of LoadBalancingSchemes
.
sourcepub fn from_i32(value: i32) -> Option<LoadBalancingSchemes>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<LoadBalancingSchemes>
Converts an i32
to a LoadBalancingSchemes
, or None
if value
is not a valid variant.
source§impl LoadBalancingSchemes
impl LoadBalancingSchemes
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 LoadBalancingSchemes
impl Clone for LoadBalancingSchemes
source§fn clone(&self) -> LoadBalancingSchemes
fn clone(&self) -> LoadBalancingSchemes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoadBalancingSchemes
impl Debug for LoadBalancingSchemes
source§impl Default for LoadBalancingSchemes
impl Default for LoadBalancingSchemes
source§fn default() -> LoadBalancingSchemes
fn default() -> LoadBalancingSchemes
source§impl From<LoadBalancingSchemes> for i32
impl From<LoadBalancingSchemes> for i32
source§fn from(value: LoadBalancingSchemes) -> i32
fn from(value: LoadBalancingSchemes) -> i32
source§impl Hash for LoadBalancingSchemes
impl Hash for LoadBalancingSchemes
source§impl Ord for LoadBalancingSchemes
impl Ord for LoadBalancingSchemes
source§fn cmp(&self, other: &LoadBalancingSchemes) -> Ordering
fn cmp(&self, other: &LoadBalancingSchemes) -> 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 LoadBalancingSchemes
impl PartialEq for LoadBalancingSchemes
source§fn eq(&self, other: &LoadBalancingSchemes) -> bool
fn eq(&self, other: &LoadBalancingSchemes) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LoadBalancingSchemes
impl PartialOrd for LoadBalancingSchemes
source§fn partial_cmp(&self, other: &LoadBalancingSchemes) -> Option<Ordering>
fn partial_cmp(&self, other: &LoadBalancingSchemes) -> 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 LoadBalancingSchemes
impl TryFrom<i32> for LoadBalancingSchemes
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LoadBalancingSchemes, UnknownEnumValue>
fn try_from(value: i32) -> Result<LoadBalancingSchemes, UnknownEnumValue>
impl Copy for LoadBalancingSchemes
impl Eq for LoadBalancingSchemes
impl StructuralPartialEq for LoadBalancingSchemes
Auto Trait Implementations§
impl Freeze for LoadBalancingSchemes
impl RefUnwindSafe for LoadBalancingSchemes
impl Send for LoadBalancingSchemes
impl Sync for LoadBalancingSchemes
impl Unpin for LoadBalancingSchemes
impl UnwindSafe for LoadBalancingSchemes
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