pub struct UploadResumeInfo {
pub completed_file_id: Option<String>,
pub next_byte: Option<u64>,
pub provider_upload_id: Option<String>,
}Fields§
§completed_file_id: Option<String>File ID returned by server when upload is already complete.
next_byte: Option<u64>Suggested next byte offset (nextByte) from server.
Range: >= 0.
provider_upload_id: Option<String>Opaque, provider-defined identifier of the in-flight multipart/resumable
upload session (for example an Aliyun OSS multipart UploadId).
This is not a credential and is safe to persist. Persisting it lets
callers abort an orphaned session out-of-band after a crash, so that
uncommitted parts/blocks stop accruing storage cost. Providers that have
no separate session id (such as Azure Block Blob, whose resume state is
the uncommitted block list keyed by the blob URL) leave this None.
Note: the bundled executor only consumes UploadResumeInfo::completed_file_id
and UploadResumeInfo::next_byte; it does not forward this id to the
progress pipeline. To persist it, hold the protocol instance and read its
accessor (for OSS, [crate::aliyun_oss_direct::AliOssDirectUpload::current_upload_id]),
or consume this value from a custom executor.
Trait Implementations§
Source§impl Clone for UploadResumeInfo
impl Clone for UploadResumeInfo
Source§fn clone(&self) -> UploadResumeInfo
fn clone(&self) -> UploadResumeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more