Enum google_maps::places::status::Status
source · pub enum Status {
Ok,
ZeroResults,
InvalidRequest,
OverQueryLimit,
RequestDenied,
UnknownError,
NotFound,
}
Expand description
Indicates the status of the response.
Variants§
Ok
Indicates that the request was successful.
ZeroResults
Indicates that the search was successful but returned no results. This
may occur if the search was passed a latlng
in a remote location.
InvalidRequest
Indicates the API request was malformed, generally due to missing
required query parameter (location
or radius
).
OverQueryLimit
Indicates any of the following:
- You have exceeded the QPS limits.
- Billing has not been enabled on your account.
- The monthly $200 credit, or a self-imposed usage cap, has been exceeded.
- The provided method of payment is no longer valid (for example, a credit card has expired).
See the Maps FAQ for more information about how to resolve this error.
RequestDenied
Indicates that your request was denied, generally because:
- The request is missing an API key.
- The
key
parameter is invalid.
UnknownError
Indicates an unknown error.
NotFound
Indicates that that the referenced location, place_id
, was not found
in the Places database.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Ord for Status
impl Ord for Status
source§impl PartialEq for Status
impl PartialEq for Status
source§impl PartialOrd for Status
impl PartialOrd for Status
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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
Mutably borrows from an owned value. Read more