Struct http_multipart::Field
source · pub struct Field<'a, S> { /* private fields */ }
Implementations§
source§impl<S, T, E> Field<'_, S>
impl<S, T, E> Field<'_, S>
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The field name found in the http::header::CONTENT_DISPOSITION header.
sourcepub fn file_name(&self) -> Option<&str>
pub fn file_name(&self) -> Option<&str>
The file name found in the http::header::CONTENT_DISPOSITION header.
pub fn headers(&self) -> &HeaderMap
pub async fn try_next(&mut self) -> Result<Option<Bytes>, MultipartError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> RefUnwindSafe for Field<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Field<'a, S>where
S: Send,
impl<'a, S> Sync for Field<'a, S>where
S: Sync,
impl<'a, S> Unpin for Field<'a, S>
impl<'a, S> !UnwindSafe for Field<'a, S>
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