Enum google_api_proto::google::maps::playablelocations::v3::player_report::BadLocationReason
source · #[repr(i32)]pub enum BadLocationReason {
Unspecified = 0,
Other = 1,
NotPedestrianAccessible = 2,
NotOpenToPublic = 4,
PermanentlyClosed = 5,
TemporarilyInaccessible = 6,
}
Expand description
The reason why the playable location is considered bad.
Variants§
Unspecified = 0
Unspecified reason. Do not use.
Other = 1
The reason isn’t one of the reasons in this enumeration.
NotPedestrianAccessible = 2
The playable location isn’t accessible to pedestrians. For example, if it’s in the middle of a highway.
NotOpenToPublic = 4
The playable location isn’t open to the public. For example, a private office building.
PermanentlyClosed = 5
The playable location is permanently closed. For example, when a business has been shut down.
TemporarilyInaccessible = 6
The playable location is temporarily inaccessible. For example, when a business has closed for renovations.
Implementations§
source§impl BadLocationReason
impl BadLocationReason
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 BadLocationReason
impl Clone for BadLocationReason
source§fn clone(&self) -> BadLocationReason
fn clone(&self) -> BadLocationReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BadLocationReason
impl Debug for BadLocationReason
source§impl Default for BadLocationReason
impl Default for BadLocationReason
source§fn default() -> BadLocationReason
fn default() -> BadLocationReason
source§impl From<BadLocationReason> for i32
impl From<BadLocationReason> for i32
source§fn from(value: BadLocationReason) -> i32
fn from(value: BadLocationReason) -> i32
source§impl Hash for BadLocationReason
impl Hash for BadLocationReason
source§impl Ord for BadLocationReason
impl Ord for BadLocationReason
source§fn cmp(&self, other: &BadLocationReason) -> Ordering
fn cmp(&self, other: &BadLocationReason) -> 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 BadLocationReason
impl PartialEq for BadLocationReason
source§fn eq(&self, other: &BadLocationReason) -> bool
fn eq(&self, other: &BadLocationReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BadLocationReason
impl PartialOrd for BadLocationReason
source§fn partial_cmp(&self, other: &BadLocationReason) -> Option<Ordering>
fn partial_cmp(&self, other: &BadLocationReason) -> 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 BadLocationReason
impl TryFrom<i32> for BadLocationReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<BadLocationReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<BadLocationReason, UnknownEnumValue>
impl Copy for BadLocationReason
impl Eq for BadLocationReason
impl StructuralPartialEq for BadLocationReason
Auto Trait Implementations§
impl Freeze for BadLocationReason
impl RefUnwindSafe for BadLocationReason
impl Send for BadLocationReason
impl Sync for BadLocationReason
impl Unpin for BadLocationReason
impl UnwindSafe for BadLocationReason
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