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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnwindSafe for Form
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)