pub struct Field {
pub headers: HeaderMap,
pub content_type: Mime,
pub content_disposition: ContentDisposition,
pub form_data: FormData,
}
Fields§
§headers: HeaderMap
§content_type: Mime
§content_disposition: ContentDisposition
§form_data: FormData
Implementations§
Source§impl Field
impl Field
Sourcepub fn content_type(&self) -> &Mime
pub fn content_type(&self) -> &Mime
for compatibility with multipart’s Field
Sourcepub fn content_disposition(&self) -> Option<ContentDisposition>
pub fn content_disposition(&self) -> Option<ContentDisposition>
for compatibility with multipart’s Field. always return Some(data)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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