Enum google_api_proto::google::monitoring::v3::UptimeCheckRegion
source · #[repr(i32)]pub enum UptimeCheckRegion {
RegionUnspecified = 0,
Usa = 1,
Europe = 2,
SouthAmerica = 3,
AsiaPacific = 4,
UsaOregon = 5,
UsaIowa = 6,
UsaVirginia = 7,
}
Expand description
The regions from which an Uptime check can be run.
Variants§
RegionUnspecified = 0
Default value if no region is specified. Will result in Uptime checks running from all regions.
Usa = 1
Allows checks to run from locations within the United States of America.
Europe = 2
Allows checks to run from locations within the continent of Europe.
SouthAmerica = 3
Allows checks to run from locations within the continent of South America.
AsiaPacific = 4
Allows checks to run from locations within the Asia Pacific area (ex: Singapore).
UsaOregon = 5
Allows checks to run from locations within the western United States of America
UsaIowa = 6
Allows checks to run from locations within the central United States of America
UsaVirginia = 7
Allows checks to run from locations within the eastern United States of America
Implementations§
source§impl UptimeCheckRegion
impl UptimeCheckRegion
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 UptimeCheckRegion
impl Clone for UptimeCheckRegion
source§fn clone(&self) -> UptimeCheckRegion
fn clone(&self) -> UptimeCheckRegion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UptimeCheckRegion
impl Debug for UptimeCheckRegion
source§impl Default for UptimeCheckRegion
impl Default for UptimeCheckRegion
source§fn default() -> UptimeCheckRegion
fn default() -> UptimeCheckRegion
source§impl From<UptimeCheckRegion> for i32
impl From<UptimeCheckRegion> for i32
source§fn from(value: UptimeCheckRegion) -> i32
fn from(value: UptimeCheckRegion) -> i32
source§impl Hash for UptimeCheckRegion
impl Hash for UptimeCheckRegion
source§impl Ord for UptimeCheckRegion
impl Ord for UptimeCheckRegion
source§fn cmp(&self, other: &UptimeCheckRegion) -> Ordering
fn cmp(&self, other: &UptimeCheckRegion) -> 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 UptimeCheckRegion
impl PartialEq for UptimeCheckRegion
source§fn eq(&self, other: &UptimeCheckRegion) -> bool
fn eq(&self, other: &UptimeCheckRegion) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UptimeCheckRegion
impl PartialOrd for UptimeCheckRegion
source§fn partial_cmp(&self, other: &UptimeCheckRegion) -> Option<Ordering>
fn partial_cmp(&self, other: &UptimeCheckRegion) -> 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 UptimeCheckRegion
impl TryFrom<i32> for UptimeCheckRegion
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<UptimeCheckRegion, UnknownEnumValue>
fn try_from(value: i32) -> Result<UptimeCheckRegion, UnknownEnumValue>
impl Copy for UptimeCheckRegion
impl Eq for UptimeCheckRegion
impl StructuralPartialEq for UptimeCheckRegion
Auto Trait Implementations§
impl Freeze for UptimeCheckRegion
impl RefUnwindSafe for UptimeCheckRegion
impl Send for UptimeCheckRegion
impl Sync for UptimeCheckRegion
impl Unpin for UptimeCheckRegion
impl UnwindSafe for UptimeCheckRegion
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