Enum google_maps::TypeError
source · pub enum TypeError {
InvalidLanguageCode(String),
InvalidLatitude(Decimal, Decimal),
InvalidLongitude(Decimal, Decimal),
InvalidLatLongString(String),
FloatToDecimalConversionError(String),
InvalidBoundsString(String),
InvalidCountryCode(String),
InvalidPlaceTypeCode(String),
InvalidRegionCode(String),
InvalidLocationTypeCode(String),
}
Expand description
Errors that may be produced by crate types from implementations and associated functions. For example, type conversions, instantiations, etc.
Variants§
InvalidLanguageCode(String)
API client library attempted to parse a string that contained an invalid language code.
InvalidLatitude(Decimal, Decimal)
API client library attempted to convert a latitude/longitude pair that contained an invalid latitude.
InvalidLongitude(Decimal, Decimal)
API client library attempted to convert a latitude/longitude pair that contained an invalid longitude.
InvalidLatLongString(String)
API client library attempted to convert a latitude/longitude pair string that is invalid.
FloatToDecimalConversionError(String)
API client library attempted to convert a latitude/longitude pair that contained an invalid floating-point value.
InvalidBoundsString(String)
API client library attempted to convert a bounds string that is invalid.
InvalidCountryCode(String)
API client library attempted to parse a string that contained an invalid country code.
InvalidPlaceTypeCode(String)
API client library attempted to parse a string that contained an invalid place type code.
InvalidRegionCode(String)
API client library attempted to parse a string that contained an invalid region code.
InvalidLocationTypeCode(String)
API client library attempted to parse a string that contained an invalid location type code.
Trait Implementations§
source§impl Diagnostic for Error
impl Diagnostic for Error
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz
) is recommended, but more classic codes like
E0123
or enums will work just fine.source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic
.source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandler
s to change the display format
of this diagnostic. Read moresource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic
. Do you have any
advice for the poor soul who’s just run into this issue?source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic
’s Diagnostic::labels
to.source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic
’s Diagnostic::source_code
Diagnostic
s.