pub enum GeoError {
InvalidPostcode(String),
InvalidUsZip(String),
InvalidCountry(String),
InvalidCoords(String),
InvalidAddress(String),
}Expand description
Validation error covering all newtypes in this crate.
Variants§
InvalidPostcode(String)
Invalid UK postcode.
InvalidUsZip(String)
Invalid US ZIP code.
InvalidCountry(String)
Invalid country code.
InvalidCoords(String)
Invalid coordinates.
InvalidAddress(String)
Invalid address.
Trait Implementations§
impl Eq for GeoError
Source§impl Error for GeoError
impl Error for GeoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for GeoError
Auto Trait Implementations§
impl Freeze for GeoError
impl RefUnwindSafe for GeoError
impl Send for GeoError
impl Sync for GeoError
impl Unpin for GeoError
impl UnsafeUnpin for GeoError
impl UnwindSafe for GeoError
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
Mutably borrows from an owned value. Read more