pub enum RustAuthError {
Show 24 variants
InvalidConfig(String),
InvalidRequestBody {
encoding: &'static str,
message: String,
},
UnsupportedContentType {
content_type: String,
},
MissingContentType,
MissingPathParam {
name: String,
},
Serialization {
context: &'static str,
message: String,
},
LockPoisoned {
context: &'static str,
},
MissingRecordField {
record: &'static str,
field: String,
},
InvalidRecordField {
record: &'static str,
field: String,
expected: &'static str,
},
NumericOutOfRange {
context: &'static str,
},
Crypto(String),
FeatureDisabled {
feature: &'static str,
},
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)
InvalidRequestBody
UnsupportedContentType
MissingContentType
MissingPathParam
Serialization
LockPoisoned
MissingRecordField
InvalidRecordField
NumericOutOfRange
Crypto(String)
FeatureDisabled
InvalidSecretConfig(String)
PasswordHash(String)
Cookie(String)
Api(String)
OAuth(String)
RequestStateMissing
RequestStateTypeMismatch
TableNotFound
FieldNotFound
JoinForeignKeyNotFound
JoinForeignKeyAmbiguous
Adapter(String)
Trait Implementations§
Source§impl Debug for RustAuthError
impl Debug for RustAuthError
Source§impl Display for RustAuthError
impl Display for RustAuthError
impl Eq for RustAuthError
Source§impl Error for RustAuthError
impl Error for RustAuthError
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<OAuthUserInfoError> for RustAuthError
impl From<OAuthUserInfoError> for RustAuthError
Source§fn from(error: OAuthUserInfoError) -> Self
fn from(error: OAuthUserInfoError) -> Self
Converts to this type from the input type.
Source§impl From<RustAuthError> for AuthFlowError
impl From<RustAuthError> for AuthFlowError
Source§fn from(error: RustAuthError) -> Self
fn from(error: RustAuthError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RustAuthError
impl PartialEq for RustAuthError
Source§fn eq(&self, other: &RustAuthError) -> bool
fn eq(&self, other: &RustAuthError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RustAuthError
Auto Trait Implementations§
impl Freeze for RustAuthError
impl RefUnwindSafe for RustAuthError
impl Send for RustAuthError
impl Sync for RustAuthError
impl Unpin for RustAuthError
impl UnsafeUnpin for RustAuthError
impl UnwindSafe for RustAuthError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.