pub struct Multipart {
pub name: RustIdent,
pub fields: Vec<MultipartField>,
}Expand description
A multipart/form-data request body lowered into a per-operation extractor.
axum has no typed multipart extractor, so the generator emits a dedicated
struct (an operation artifact, like the query/header/cookie structs) plus a
hand-written FromRequest implementation that drives
axum::extract::Multipart, reads each declared field, and returns a
400 Bad Request on a missing required field or an unparseable value.
Fields§
§name: RustIdentStruct name (<Op>Multipart), doubling as the generated FromRequest
extractor type and the Api method’s body argument type.
fields: Vec<MultipartField>Fields parsed from the multipart stream, in declaration order.
Trait Implementations§
impl StructuralPartialEq for Multipart
Auto Trait Implementations§
impl Freeze for Multipart
impl RefUnwindSafe for Multipart
impl Send for Multipart
impl Sync for Multipart
impl Unpin for Multipart
impl UnsafeUnpin for Multipart
impl UnwindSafe for Multipart
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