pub enum UrlShortenerError {
Validation(ValidationError),
Api(ApiError),
Http(Error),
Json(Error),
Other(String),
}Expand description
Errors that can occur when using the URL shortener client.
Variants§
Validation(ValidationError)
Validation errors related to the request parameters.
Api(ApiError)
Errors returned by the spoo.me API.
Http(Error)
Errors related to the HTTP request, such as connection issues or timeouts.
Json(Error)
Errors related to JSON serialization or deserialization.
Other(String)
Other unexpected status codes or errors.
Trait Implementations§
Source§impl Debug for UrlShortenerError
impl Debug for UrlShortenerError
Source§impl Display for UrlShortenerError
impl Display for UrlShortenerError
Source§impl Error for UrlShortenerError
impl Error for UrlShortenerError
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()
Auto Trait Implementations§
impl Freeze for UrlShortenerError
impl !RefUnwindSafe for UrlShortenerError
impl Send for UrlShortenerError
impl Sync for UrlShortenerError
impl Unpin for UrlShortenerError
impl UnsafeUnpin for UrlShortenerError
impl !UnwindSafe for UrlShortenerError
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