pub struct MultipartItem {
pub headers: Vec<(String, String)>,
pub data: BytesMut,
}
Fields§
§headers: Vec<(String, String)>
Headers
data: BytesMut
Data
Implementations§
Source§impl MultipartItem
impl MultipartItem
pub fn get_mime_type(&self) -> Result<Mime, MultipartError>
pub fn get_file_name(&self) -> Option<String>
Auto Trait Implementations§
impl Freeze for MultipartItem
impl RefUnwindSafe for MultipartItem
impl Send for MultipartItem
impl Sync for MultipartItem
impl Unpin for MultipartItem
impl UnwindSafe for MultipartItem
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