pub enum BeginUploadResponse {
ServiceProxied {
namespace_id: NamespaceId,
upload_id: UploadId,
},
DirectPut {
namespace_id: NamespaceId,
upload_id: UploadId,
direct_put: DirectPutUpload,
},
DirectMultipart {
namespace_id: NamespaceId,
upload_id: UploadId,
direct_multipart: DirectMultipartUpload,
},
}Expand description
Response to starting an upload session, tagged by transport mode.
Each variant contains only the fields needed by that transport. Unknown response fields are accepted for forward compatibility.
Variants§
ServiceProxied
The service will receive the bytes and write the content object.
Fields
namespace_id: NamespaceIdNamespace authorized to consume the eventual staged content.
DirectPut
One presigned request writes the whole object.
Fields
namespace_id: NamespaceIdNamespace authorized to consume the eventual staged content.
direct_put: DirectPutUploadThe object this session writes, and the capability to write it.
DirectMultipart
Presigned part uploads assemble the object.
Fields
namespace_id: NamespaceIdNamespace authorized to consume the eventual staged content.
direct_multipart: DirectMultipartUploadThe geometry the client cuts its payload to.
Implementations§
Source§impl BeginUploadResponse
impl BeginUploadResponse
Sourcepub fn namespace_id(&self) -> &NamespaceId
pub fn namespace_id(&self) -> &NamespaceId
Namespace that owns the session.
Sourcepub fn upload_id(&self) -> &UploadId
pub fn upload_id(&self) -> &UploadId
Session the later append, part, completion, and abort calls name.
Sourcepub fn mode(&self) -> UploadMode
pub fn mode(&self) -> UploadMode
The transport this session was opened with.
Trait Implementations§
Source§impl Clone for BeginUploadResponse
impl Clone for BeginUploadResponse
Source§fn clone(&self) -> BeginUploadResponse
fn clone(&self) -> BeginUploadResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more