pub struct MultipartFileUploadCommand {
pub entries: Vec<(String, Body)>,
pub folder_id: u64,
}Fields§
§entries: Vec<(String, Body)>§folder_id: u64Implementations§
Source§impl MultipartFileUploadCommand
impl MultipartFileUploadCommand
pub fn new(folder_id: u64) -> Self
Sourcepub fn add_sync_file_entry(
self,
filename: String,
file: File,
) -> Result<Self, Error>
pub fn add_sync_file_entry( self, filename: String, file: File, ) -> Result<Self, Error>
This method doesn’t work because the file size is not known and therefore the content-length is not populated.
pub fn add_sync_read_entry<R: Read>( self, filename: String, reader: R, ) -> Result<Self, Error>
pub fn add_entry(self, filename: String, body: Body) -> Self
Trait Implementations§
Source§impl Debug for MultipartFileUploadCommand
impl Debug for MultipartFileUploadCommand
Auto Trait Implementations§
impl Freeze for MultipartFileUploadCommand
impl !RefUnwindSafe for MultipartFileUploadCommand
impl Send for MultipartFileUploadCommand
impl Sync for MultipartFileUploadCommand
impl Unpin for MultipartFileUploadCommand
impl !UnwindSafe for MultipartFileUploadCommand
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