pub struct Headers {
pub name: RustIdent,
pub params: Vec<HeaderParam>,
}Expand description
A generated per-operation header struct, extracted via a hand-written
axum::extract::FromRequestParts implementation rather than serde, since
header values are read and parsed individually from the request parts.
Fields§
§name: RustIdentStruct name (<Op>Headers), doubling as the extractor type and the
Api method’s headers argument type.
params: Vec<HeaderParam>Header fields, in declaration order.
Trait Implementations§
impl StructuralPartialEq for Headers
Auto Trait Implementations§
impl Freeze for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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