pub enum Status {
InvalidArgument,
PermissionDenied,
NotFound,
ResourceExhausted,
}Expand description
Indicates the status of the response.
Variants§
InvalidArgument
-
Your API key is not valid or was not included in the request. Please ensure that you’ve included the entire key, and that you’ve enabled the API for this key.
-
Your request contained invalid arguments. The most likely causes of this error are:
- A problem with your path parameter.
- Please ensure you have at least 1, and fewer than 100 points. Each
point should be a pair of numbers separated by a comma, such as:
48.409114,-123.369158. Points should be separated by a pipe: ‘|’. - Your request included an invalid
placeId. - Your request included both
placeIds and apath. Only one of these parameters may be specified for each request. This error will not be returned if aplaceIdis passed for a road which no longer exists, or for a place which is not a road.
PermissionDenied
The request was denied for one or more of the following reasons:
- 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).
In order to use Google Maps Platform products, billing must be enabled on your account, and all requests must include a valid API key. To fix this, take the following steps:
- Get an API key
- Enable billing on your account.
- Adjust your usage cap to increase your daily limit (if applicable).
NotFound
Ensure that you are sending requests to https://roads.googleapis.com/
and not http://roads.googleapis.com/.
ResourceExhausted
You have exceeded the request limit that you configured in the Google Cloud Platform Console. This limit is typically set as requests per day, requests per 100 seconds, and requests per 100 seconds per user. This limit should be configured to prevent a single or small group of users from exhausting your daily quota, while still allowing reasonable access to all users. See Capping API Usage to configure these limits.
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 PartialOrd for Status
impl PartialOrd for Status
impl 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.