Enum google_maps::error::Error[][src]

pub enum Error {
    InvalidLanguageCode(String),
    InvalidLatitude(Decimal, Decimal),
    InvalidLongitude(Decimal, Decimal),
    InvalidLatLongString(String),
    InvalidPlaceTypeCode(String),
    InvalidRegionCode(String),
}
Expand description

Errors that may be produced by the root part of the Google Maps Platform API client.

Variants

InvalidLanguageCode

API client library attempted to parse a string that contained an invalid language code. See google_maps\src\language.rs for more information.

Tuple Fields of InvalidLanguageCode

0: String
InvalidLatitude

API client library attempted to convert a latitude/longitude pair that contained an invalid latitude. See google_maps\src\latlng.rs for more information.

Tuple Fields of InvalidLatitude

0: Decimal1: Decimal
InvalidLongitude

API client library attempted to convert a latitude/longitude pair that contained an invalid longitude. See google_maps\src\latlng.rs for more information.

Tuple Fields of InvalidLongitude

0: Decimal1: Decimal
InvalidLatLongString

API client library attempted to convert a latitude/longitude pair string that is invalid. See google_maps\src\latlng.rs for more information.

Tuple Fields of InvalidLatLongString

0: String
InvalidPlaceTypeCode

API client library attempted to parse a string that contained an invalid place type code. See google_maps\src\place_type.rs for more information.

Tuple Fields of InvalidPlaceTypeCode

0: String
InvalidRegionCode

API client library attempted to parse a string that contained an invalid region code. See google_maps\src\region.rs for more information.

Tuple Fields of InvalidRegionCode

0: String

Trait Implementations

Formats the value using the given formatter. Read more

This trait converts the error code into a format that may be presented to the user.

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 Platform API error type into the native error type of the underlying library.

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.