pub enum OAuth2PasswordFormError {
UnsupportedMediaType {
actual: Option<String>,
},
PayloadTooLarge {
size: usize,
limit: usize,
},
MissingUsername,
MissingPassword,
InvalidGrantType {
actual: String,
},
MissingGrantType,
InvalidUtf8,
StreamingNotSupported,
}Expand description
Error when OAuth2 password request form extraction fails.
Variants§
UnsupportedMediaType
Content-Type is not application/x-www-form-urlencoded.
PayloadTooLarge
Request body exceeds the configured limit.
MissingUsername
The username field is missing.
MissingPassword
The password field is missing.
InvalidGrantType
The grant_type must be "password" (strict mode).
MissingGrantType
The grant_type field is missing (strict mode).
InvalidUtf8
Request body is not valid UTF-8.
StreamingNotSupported
Streaming bodies are not supported.
Trait Implementations§
Source§impl Clone for OAuth2PasswordFormError
impl Clone for OAuth2PasswordFormError
Source§fn clone(&self) -> OAuth2PasswordFormError
fn clone(&self) -> OAuth2PasswordFormError
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 OAuth2PasswordFormError
impl Debug for OAuth2PasswordFormError
Source§impl Display for OAuth2PasswordFormError
impl Display for OAuth2PasswordFormError
Source§impl Error for OAuth2PasswordFormError
impl Error for OAuth2PasswordFormError
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 IntoResponse for OAuth2PasswordFormError
impl IntoResponse for OAuth2PasswordFormError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert into a response.
Source§impl PartialEq for OAuth2PasswordFormError
impl PartialEq for OAuth2PasswordFormError
impl Eq for OAuth2PasswordFormError
impl StructuralPartialEq for OAuth2PasswordFormError
Auto Trait Implementations§
impl Freeze for OAuth2PasswordFormError
impl RefUnwindSafe for OAuth2PasswordFormError
impl Send for OAuth2PasswordFormError
impl Sync for OAuth2PasswordFormError
impl Unpin for OAuth2PasswordFormError
impl UnwindSafe for OAuth2PasswordFormError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).