pub struct Part {
pub name: String,
pub filename: Option<String>,
pub content_type: Option<String>,
pub bytes: Bytes,
}Expand description
One part of a multipart/form-data body.
Fields§
§name: StringThe name from Content-Disposition.
filename: Option<String>The filename, when the part is a file upload.
content_type: Option<String>The part’s Content-Type, if it declared one.
bytes: BytesThe part’s raw content.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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