pub struct ResumableUploadClient { /* private fields */ }Implementations§
source§impl ResumableUploadClient
impl ResumableUploadClient
pub fn url(&self) -> &str
pub fn new(session_url: String, http: Client) -> Self
sourcepub async fn upload_single_chunk<T: Into<Body>>(
&self,
data: T,
size: usize
) -> Result<(), Error>
pub async fn upload_single_chunk<T: Into<Body>>( &self, data: T, size: usize ) -> Result<(), Error>
https://cloud.google.com/storage/docs/performing-resumable-uploads#single-chunk-upload
sourcepub async fn upload_multiple_chunk<T: Into<Body>>(
&self,
data: T,
size: &ChunkSize
) -> Result<UploadStatus, Error>
pub async fn upload_multiple_chunk<T: Into<Body>>( &self, data: T, size: &ChunkSize ) -> Result<UploadStatus, Error>
https://cloud.google.com/storage/docs/performing-resumable-uploads#chunked-upload https://cloud.google.com/storage/docs/performing-resumable-uploads#resume-upload
Trait Implementations§
source§impl Clone for ResumableUploadClient
impl Clone for ResumableUploadClient
source§fn clone(&self) -> ResumableUploadClient
fn clone(&self) -> ResumableUploadClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more