pub enum ParsingBodyMechanism {
Default,
JustBytes,
FormData,
XWWWFormData,
}Expand description
Informs the context how incoming request body bytes should be parsed.
Variants§
Default
Let the context determine the parsing strategy based on Content-Type header.
JustBytes
Keep incoming bytes raw without automatic parsing.
FormData
Parse incoming bytes into multipart form fields.
XWWWFormData
Parse incoming bytes into x-www-form-urlencoded structure.
Auto Trait Implementations§
impl Freeze for ParsingBodyMechanism
impl RefUnwindSafe for ParsingBodyMechanism
impl Send for ParsingBodyMechanism
impl Sync for ParsingBodyMechanism
impl Unpin for ParsingBodyMechanism
impl UnsafeUnpin for ParsingBodyMechanism
impl UnwindSafe for ParsingBodyMechanism
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