Struct axum::extract::rejection::TypedHeaderRejection
source · pub struct TypedHeaderRejection { /* private fields */ }
Available on crate feature
headers
only.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
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)>
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.