Enum google_maps::places::place_autocomplete::error::Error
source · pub enum Error {
GoogleMapsService(Status, Option<String>),
HttpUnsuccessful(String),
InvalidStatusCode(String),
InvalidAutocompleteType(String),
QueryNotBuilt,
Reqwest(Error),
ReqwestMessage(String),
SerdeJson(Error),
}
Expand description
Errors that may be produced by the Google Maps Places API client.
Variants§
GoogleMapsService(Status, Option<String>)
Google Maps Places API server generated an error. See the Status
enum for more information.
HttpUnsuccessful(String)
The HTTP request was unsuccessful.
InvalidStatusCode(String)
API client library attempted to parse a string that contained an invalid
status code. See
google_maps\src\places\place_autocomplete\response\status.rs
for more
information.
InvalidAutocompleteType(String)
API client library attempted to parse a string that contained an invalid
autocomplete type. See
google_maps\src\places\place_autocomplete\request\autocomplete_type.rs
for more information.
QueryNotBuilt
The query string must be built before the request may be sent to the Google Maps Places API server.
Reqwest(Error)
The dependency library Reqwest generated an error.
ReqwestMessage(String)
The dependency library Reqwest generated an error. The error could
not be passed normally so a String
representation is passed instead.
SerdeJson(Error)
The dependency library Serde JSON generated an error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
If the cause for the error is in an underlying library (not this library but a library this one depends on), this trait unwraps the original source error. This trait converts a Google Maps Places API error type into the native error type of the underlying library.