pub enum OpenAuthError {
Show 14 variants
InvalidConfig(String),
Crypto(String),
InvalidSecretConfig(String),
PasswordHash(String),
Cookie(String),
Api(String),
OAuth(String),
RequestStateMissing,
RequestStateTypeMismatch,
TableNotFound {
table: String,
},
FieldNotFound {
table: String,
field: String,
},
JoinForeignKeyNotFound {
base_model: String,
join_model: String,
},
JoinForeignKeyAmbiguous {
base_model: String,
join_model: String,
},
Adapter(String),
}Expand description
Core library error.
Variants§
InvalidConfig(String)
Crypto(String)
InvalidSecretConfig(String)
PasswordHash(String)
Cookie(String)
Api(String)
OAuth(String)
RequestStateMissing
RequestStateTypeMismatch
TableNotFound
FieldNotFound
JoinForeignKeyNotFound
JoinForeignKeyAmbiguous
Adapter(String)
Trait Implementations§
Source§impl Debug for OpenAuthError
impl Debug for OpenAuthError
Source§impl Display for OpenAuthError
impl Display for OpenAuthError
Source§impl Error for OpenAuthError
impl Error for OpenAuthError
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<OAuthError> for OpenAuthError
impl From<OAuthError> for OpenAuthError
Source§fn from(error: OAuthError) -> Self
fn from(error: OAuthError) -> Self
Converts to this type from the input type.
Source§impl From<OpenAuthError> for AuthFlowError
impl From<OpenAuthError> for AuthFlowError
Source§fn from(error: OpenAuthError) -> Self
fn from(error: OpenAuthError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpenAuthError
impl PartialEq for OpenAuthError
Source§fn eq(&self, other: &OpenAuthError) -> bool
fn eq(&self, other: &OpenAuthError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OpenAuthError
impl StructuralPartialEq for OpenAuthError
Auto Trait Implementations§
impl Freeze for OpenAuthError
impl RefUnwindSafe for OpenAuthError
impl Send for OpenAuthError
impl Sync for OpenAuthError
impl Unpin for OpenAuthError
impl UnsafeUnpin for OpenAuthError
impl UnwindSafe for OpenAuthError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.