Struct twilight_http::request::Form
source · 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 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