Struct rusty_s3::actions::CreateMultipartUpload
source · pub struct CreateMultipartUpload<'a> { /* private fields */ }
Expand description
Create a multipart upload.
A few advantages of multipart uploads are:
- being able to be resume without having to start back from the beginning
- parallelize the uploads across multiple threads
Find out more about CreateMultipartUpload
from the AWS API Reference
Implementations§
source§impl<'a> CreateMultipartUpload<'a>
impl<'a> CreateMultipartUpload<'a>
pub fn new( bucket: &'a Bucket, credentials: Option<&'a Credentials>, object: &'a str ) -> Self
pub fn parse_response(s: &str) -> Result<CreateMultipartUploadResponse, DeError>
Trait Implementations§
source§impl<'a> Clone for CreateMultipartUpload<'a>
impl<'a> Clone for CreateMultipartUpload<'a>
source§fn clone(&self) -> CreateMultipartUpload<'a>
fn clone(&self) -> CreateMultipartUpload<'a>
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 moresource§impl<'a> Debug for CreateMultipartUpload<'a>
impl<'a> Debug for CreateMultipartUpload<'a>
source§impl<'a> S3Action<'a> for CreateMultipartUpload<'a>
impl<'a> S3Action<'a> for CreateMultipartUpload<'a>
const METHOD: Method = Method::Post
source§fn query_mut(&mut self) -> &mut Map<'a>
fn query_mut(&mut self) -> &mut Map<'a>
Get a mutable reference to the query string of this action
source§fn headers_mut(&mut self) -> &mut Map<'a>
fn headers_mut(&mut self) -> &mut Map<'a>
Get a mutable reference to the signed headers of this action Read more
source§fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
Takes the time at which the URL should be signed
Used for testing purposes
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CreateMultipartUpload<'a>
impl<'a> Send for CreateMultipartUpload<'a>
impl<'a> Sync for CreateMultipartUpload<'a>
impl<'a> Unpin for CreateMultipartUpload<'a>
impl<'a> UnwindSafe for CreateMultipartUpload<'a>
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