Enum google_maps::directions::response::status::Status
source · pub enum Status {
InvalidRequest,
MaxRouteLengthExceeded,
MaxWaypointsExceeded,
NotFound,
Ok,
OverDailyLimit,
OverQueryLimit,
RequestDenied,
UnknownError,
ZeroResults,
}
Expand description
The status
field within the Directions response object contains the
status
of the request, and may contain debugging information to help you track down
why the Directions service failed.
Variants§
InvalidRequest
Indicates that the provided request was invalid. Common causes of this status include an invalid parameter or parameter value.
MaxRouteLengthExceeded
Indicates the requested route is too long and cannot be processed. This error occurs when more complex directions are returned. Try reducing the number of waypoints, turns, or instructions.
MaxWaypointsExceeded
Indicates that too many waypoints
were provided in the request. For
applications using the Directions API as a web service, or the
directions service in the Maps JavaScript API,
the maximum allowed number of waypoints
is 25, plus the origin and
destination.
NotFound
Indicates at least one of the locations specified in the request’s origin, destination, or waypoints could not be geocoded.
Ok
Indicates the response contains a valid result
.
OverDailyLimit
Indicates any of the following:
- The API key is missing or invalid.
- Billing has not been enabled on your account.
- 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 to learn how to fix this.
OverQueryLimit
Indicates the service has received too many requests from your application within the allowed time period.
RequestDenied
Indicates that the service denied use of the directions service by your application.
UnknownError
Indicates a directions request could not be processed due to a server error. The request may succeed if you try again.
ZeroResults
Indicates no route could be found between the origin and destination.
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
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.