pub enum BeginUploadRequest {
ServiceProxied {},
DirectPut {
content: DirectPutContentClaim,
},
DirectMultipart {
multipart: Option<DirectMultipartUploadOptions>,
},
}Expand description
Request for starting an upload session, tagged by the transport it asks for.
Each transport carries only what it needs, so the combinations a flat
request could spell — a proxied begin carrying multipart geometry, a
direct put with no claim to sign — are refused when the body is decoded
rather than by a handler reading them back. mode is required: a
request that does not say how it intends to move its bytes is not a
request this API can answer.
Variants§
ServiceProxied
Send the bytes to the service, which writes the content object.
DirectPut
Write the whole object through one presigned request. The server signs exactly these bytes into the write it authorizes, so the claim is required.
Fields
content: DirectPutContentClaimByte length and digest of the payload about to be written.
DirectMultipart
Write the object in parts through presigned part uploads.
Fields
multipart: Option<DirectMultipartUploadOptions>Selects the part geometry; absent takes the server’s default. A multipart upload claims its content at completion, so nothing about the payload is declared here.
Implementations§
Source§impl BeginUploadRequest
impl BeginUploadRequest
Sourcepub fn mode(&self) -> UploadMode
pub fn mode(&self) -> UploadMode
The transport this request asks for.
Trait Implementations§
Source§impl Clone for BeginUploadRequest
impl Clone for BeginUploadRequest
Source§fn clone(&self) -> BeginUploadRequest
fn clone(&self) -> BeginUploadRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more