pub struct HttpFile { /* private fields */ }Implementations§
Source§impl HttpFile
impl HttpFile
pub fn new_bytes(bytes: impl Into<Vec<u8>>) -> HttpFile
pub fn new_bytes_data(data: JsonValue, bytes: impl Into<Vec<u8>>) -> HttpFile
pub fn new_path(path: impl AsRef<Path>) -> Result<HttpFile, HlsError>
pub fn new_path_data( data: JsonValue, path: impl AsRef<Path>, ) -> Result<HttpFile, HlsError>
pub fn new_form(form: FileForm) -> HttpFile
pub fn new_form_data(data: JsonValue, form: FileForm) -> HttpFile
pub fn with_boundary(self, boundary: Arc<String>) -> HttpFile
pub fn set_boundary(&mut self, boundary: Arc<String>)
pub fn add_form(&mut self, form: FileForm)
pub fn remove_form(&mut self, index: usize) -> FileForm
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpFile
impl RefUnwindSafe for HttpFile
impl Send for HttpFile
impl Sync for HttpFile
impl Unpin for HttpFile
impl UnsafeUnpin for HttpFile
impl UnwindSafe for HttpFile
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