Struct axum_extra::typed_header::TypedHeaderRejection
source · pub struct TypedHeaderRejection { /* private fields */ }
Expand description
Rejection used for TypedHeader
.
Implementations§
source§impl TypedHeaderRejection
impl TypedHeaderRejection
sourcepub fn name(&self) -> &HeaderName
pub fn name(&self) -> &HeaderName
Name of the header that caused the rejection
sourcepub fn reason(&self) -> &TypedHeaderRejectionReason
pub fn reason(&self) -> &TypedHeaderRejectionReason
Reason why the header extraction has failed
sourcepub fn is_missing(&self) -> bool
pub fn is_missing(&self) -> bool
Returns true
if the typed header rejection reason is Missing
.
Trait Implementations§
source§impl Debug for TypedHeaderRejection
impl Debug for TypedHeaderRejection
source§impl Display for TypedHeaderRejection
impl Display for TypedHeaderRejection
source§impl Error for TypedHeaderRejection
impl Error for TypedHeaderRejection
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 TypedHeaderRejection
impl IntoResponse for TypedHeaderRejection
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for TypedHeaderRejection
impl RefUnwindSafe for TypedHeaderRejection
impl Send for TypedHeaderRejection
impl Sync for TypedHeaderRejection
impl Unpin for TypedHeaderRejection
impl UnwindSafe for TypedHeaderRejection
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