pub struct MultipartField { /* private fields */ }Expand description
A single field from a multipart form
Implementations§
Source§impl MultipartField
impl MultipartField
Sourcepub fn new(
name: Option<String>,
file_name: Option<String>,
content_type: Option<String>,
data: Bytes,
) -> MultipartField
pub fn new( name: Option<String>, file_name: Option<String>, content_type: Option<String>, data: Bytes, ) -> MultipartField
Create a new multipart field
Sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
Get the content type of the field
Trait Implementations§
Source§impl Clone for MultipartField
impl Clone for MultipartField
Source§fn clone(&self) -> MultipartField
fn clone(&self) -> MultipartField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for MultipartField
impl RefUnwindSafe for MultipartField
impl Send for MultipartField
impl Sync for MultipartField
impl Unpin for MultipartField
impl UnwindSafe for MultipartField
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