pub struct DefaultStyleUpload {
pub category: String,
}Fields§
§category: StringOptional business category sent in multipart form.
Trait Implementations§
Source§impl BreakpointUpload for DefaultStyleUpload
impl BreakpointUpload for DefaultStyleUpload
Source§fn prepare<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: UploadPrepareCtx<'life1>,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prepare<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: UploadPrepareCtx<'life1>,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends prepare request for default multipart upload protocol.
Source§fn upload_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: UploadChunkCtx<'life1>,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upload_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: UploadChunkCtx<'life1>,
) -> Pin<Box<dyn Future<Output = Result<UploadResumeInfo, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends one upload chunk for default multipart upload protocol.
The chunk payload is forwarded to reqwest as a stream built from the
shared bytes::Bytes handle, so no per-chunk Vec::to_vec copy is
required. Retries clone the same Bytes (refcount only) instead of
re-allocating the chunk buffer.
Source§fn complete_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn complete_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Finalization step after all chunk bytes are uploaded. Read more
Source§fn abort_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn abort_upload<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_client: &'life1 Client,
_task: &'life2 TransferTask,
) -> Pin<Box<dyn Future<Output = Result<(), MeowError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Abort/cleanup hook called when user cancels an upload task. Read more
Source§impl Clone for DefaultStyleUpload
impl Clone for DefaultStyleUpload
Source§fn clone(&self) -> DefaultStyleUpload
fn clone(&self) -> DefaultStyleUpload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultStyleUpload
impl Debug for DefaultStyleUpload
Auto Trait Implementations§
impl Freeze for DefaultStyleUpload
impl RefUnwindSafe for DefaultStyleUpload
impl Send for DefaultStyleUpload
impl Sync for DefaultStyleUpload
impl Unpin for DefaultStyleUpload
impl UnsafeUnpin for DefaultStyleUpload
impl UnwindSafe for DefaultStyleUpload
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