pub struct Body {
pub ty: RustType,
pub kind: BodyKind,
}Expand description
A request or response body: its Rust type plus the wire content type that selects the axum extractor / response wrapper.
Fields§
§ty: RustTypeThe Rust type of the decoded body.
kind: BodyKindThe content type that selects the extractor / response wrapper.
Trait Implementations§
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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