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>
ReportHandlers 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_codeDiagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> 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.