pub struct MultipartField { /* private fields */ }Expand description
A field in a multipart form.
Implementations§
Source§impl MultipartField
impl MultipartField
Sourcepub fn content_type(&self) -> Option<&Mime>
pub fn content_type(&self) -> Option<&Mime>
Returns the content type of this field.
Sourcepub fn text_with_charset(&self, default_encoding: &str) -> String
pub fn text_with_charset(&self, default_encoding: &str) -> String
Converts this field to a string using the given encoding.
Checkout: https://docs.rs/encoding_rs/latest/encoding_rs/struct.Encoding.html
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