pub struct Form { /* private fields */ }Implementations§
Source§impl Form
impl Form
pub fn new() -> Self
Sourcepub fn content_type(&self) -> Vec<u8> ⓘ
pub fn content_type(&self) -> Vec<u8> ⓘ
Get the form’s appropriate content type for requests.
pub fn part(self, name: &[u8], value: &[u8]) -> Self
pub fn file_part(self, name: &[u8], filename: &[u8], value: &[u8]) -> Self
pub fn json_part(self, name: &[u8], value: &[u8]) -> Self
pub fn into_parts(self) -> ([u8; 15], Vec<u8>)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Form
impl Freeze for Form
impl Move for Form
impl RefUnwindSafe for Form
impl Send for Formwhere
RawVecInner: Send,
impl Sync for Formwhere
RawVecInner: Sync,
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Formwhere
RawVecInner: UnwindSafe,
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