pub enum GoogleApiError {
Connection(String),
JsonParse(String),
Api {
status: u16,
message: String,
},
Auth(String),
}Expand description
Error type for Google Search Console API operations.
This enum represents all possible errors that can occur when using this library.
Variants§
Connection(String)
HTTP connection error (network issues, DNS resolution, etc.).
JsonParse(String)
JSON parsing error (invalid response format).
Api
API error response with status code and message.
Auth(String)
Authentication error (invalid or expired token).
Trait Implementations§
Source§impl Clone for GoogleApiError
impl Clone for GoogleApiError
Source§fn clone(&self) -> GoogleApiError
fn clone(&self) -> GoogleApiError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleApiError
impl Debug for GoogleApiError
Source§impl Display for GoogleApiError
impl Display for GoogleApiError
Source§impl Error for GoogleApiError
impl Error for GoogleApiError
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 GoogleApiError
impl RefUnwindSafe for GoogleApiError
impl Send for GoogleApiError
impl Sync for GoogleApiError
impl Unpin for GoogleApiError
impl UnsafeUnpin for GoogleApiError
impl UnwindSafe for GoogleApiError
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