pub enum PodbeanError {
ApiError {
code: u16,
message: String,
},
RateLimitError {
retry_after: Option<u64>,
},
NetworkError(Error),
SerializationError(Error),
UrlParseError(ParseError),
AuthError(String),
OtherError(String),
}Expand description
Possible errors that can occur when using the Podbean API client.
Variants§
ApiError
Error returned by the Podbean API.
RateLimitError
Rate limit exceeded error.
NetworkError(Error)
Network error when communicating with the API.
SerializationError(Error)
Error deserializing JSON response.
UrlParseError(ParseError)
Error parsing a URL.
AuthError(String)
Authentication-related error.
OtherError(String)
Any other type of error.
Trait Implementations§
Source§impl Debug for PodbeanError
impl Debug for PodbeanError
Source§impl Display for PodbeanError
impl Display for PodbeanError
Source§impl Error for PodbeanError
impl Error for PodbeanError
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()
Source§impl From<Error> for PodbeanError
impl From<Error> for PodbeanError
Source§impl From<Error> for PodbeanError
impl From<Error> for PodbeanError
Source§impl From<ParseError> for PodbeanError
impl From<ParseError> for PodbeanError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PodbeanError
impl !RefUnwindSafe for PodbeanError
impl Send for PodbeanError
impl Sync for PodbeanError
impl Unpin for PodbeanError
impl !UnwindSafe for PodbeanError
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