pub enum SocialError {
TokenExchangeFailed(String),
UserInfoFailed(String),
MissingField(String),
HttpError(String),
}Expand description
Errors for social login operations.
Variants§
TokenExchangeFailed(String)
Token exchange with the provider failed.
UserInfoFailed(String)
User info fetch from the provider failed.
MissingField(String)
A required field is missing from the provider response.
HttpError(String)
HTTP request error.
Trait Implementations§
Source§impl Debug for SocialError
impl Debug for SocialError
Source§impl Display for SocialError
impl Display for SocialError
Source§impl Error for SocialError
impl Error for SocialError
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 SocialError
impl RefUnwindSafe for SocialError
impl Send for SocialError
impl Sync for SocialError
impl Unpin for SocialError
impl UnsafeUnpin for SocialError
impl UnwindSafe for SocialError
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