pub enum ApifyClientError {
ApifyApi(ApifyApiError),
Parse(Error),
}
Expand description
Errors can either be returned by Apify API or happen due to wrong JSON parsing logic. Only few endpoints that include parsing JSON can return Parse error
Variants§
ApifyApi(ApifyApiError)
Parse(Error)
Trait Implementations§
Source§impl Debug for ApifyClientError
impl Debug for ApifyClientError
Source§impl Display for ApifyClientError
impl Display for ApifyClientError
Source§impl Error for ApifyClientError
impl Error for ApifyClientError
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()
Source§impl From<ApifyApiError> for ApifyClientError
impl From<ApifyApiError> for ApifyClientError
Source§fn from(e: ApifyApiError) -> Self
fn from(e: ApifyApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApifyClientError
impl !RefUnwindSafe for ApifyClientError
impl Send for ApifyClientError
impl Sync for ApifyClientError
impl Unpin for ApifyClientError
impl !UnwindSafe for ApifyClientError
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