Struct bonsaidb::keystorage::s3::aws_sdk_s3::operation::copy_object::CopyObjectOutput
#[non_exhaustive]pub struct CopyObjectOutput {
pub copy_object_result: Option<CopyObjectResult>,
pub expiration: Option<String>,
pub copy_source_version_id: Option<String>,
pub version_id: Option<String>,
pub server_side_encryption: Option<ServerSideEncryption>,
pub sse_customer_algorithm: Option<String>,
pub sse_customer_key_md5: Option<String>,
pub ssekms_key_id: Option<String>,
pub ssekms_encryption_context: Option<String>,
pub bucket_key_enabled: bool,
pub request_charged: Option<RequestCharged>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.copy_object_result: Option<CopyObjectResult>
Container for all response elements.
expiration: Option<String>
If the object expiration is configured, the response includes this header.
copy_source_version_id: Option<String>
Version of the copied object in the destination bucket.
version_id: Option<String>
Version ID of the newly created copy.
server_side_encryption: Option<ServerSideEncryption>
The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256
, aws:kms
, aws:kms:dsse
).
sse_customer_algorithm: Option<String>
If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
sse_customer_key_md5: Option<String>
If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.
ssekms_key_id: Option<String>
If present, specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key that was used for the object.
ssekms_encryption_context: Option<String>
If present, specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
bucket_key_enabled: bool
Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).
request_charged: Option<RequestCharged>
If present, indicates that the requester was successfully charged for the request.
Implementations§
§impl CopyObjectOutput
impl CopyObjectOutput
pub fn copy_object_result(&self) -> Option<&CopyObjectResult>
pub fn copy_object_result(&self) -> Option<&CopyObjectResult>
Container for all response elements.
pub fn expiration(&self) -> Option<&str>
pub fn expiration(&self) -> Option<&str>
If the object expiration is configured, the response includes this header.
pub fn copy_source_version_id(&self) -> Option<&str>
pub fn copy_source_version_id(&self) -> Option<&str>
Version of the copied object in the destination bucket.
pub fn version_id(&self) -> Option<&str>
pub fn version_id(&self) -> Option<&str>
Version ID of the newly created copy.
pub fn server_side_encryption(&self) -> Option<&ServerSideEncryption>
pub fn server_side_encryption(&self) -> Option<&ServerSideEncryption>
The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256
, aws:kms
, aws:kms:dsse
).
pub fn sse_customer_algorithm(&self) -> Option<&str>
pub fn sse_customer_algorithm(&self) -> Option<&str>
If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.
pub fn sse_customer_key_md5(&self) -> Option<&str>
pub fn sse_customer_key_md5(&self) -> Option<&str>
If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.
pub fn ssekms_key_id(&self) -> Option<&str>
pub fn ssekms_key_id(&self) -> Option<&str>
If present, specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key that was used for the object.
pub fn ssekms_encryption_context(&self) -> Option<&str>
pub fn ssekms_encryption_context(&self) -> Option<&str>
If present, specifies the Amazon Web Services KMS Encryption Context to use for object encryption. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
pub fn bucket_key_enabled(&self) -> bool
pub fn bucket_key_enabled(&self) -> bool
Indicates whether the copied object uses an S3 Bucket Key for server-side encryption with Key Management Service (KMS) keys (SSE-KMS).
pub fn request_charged(&self) -> Option<&RequestCharged>
pub fn request_charged(&self) -> Option<&RequestCharged>
If present, indicates that the requester was successfully charged for the request.
§impl CopyObjectOutput
impl CopyObjectOutput
pub fn builder() -> CopyObjectOutputBuilder
pub fn builder() -> CopyObjectOutputBuilder
Creates a new builder-style object to manufacture CopyObjectOutput
.
Trait Implementations§
§impl Clone for CopyObjectOutput
impl Clone for CopyObjectOutput
§fn clone(&self) -> CopyObjectOutput
fn clone(&self) -> CopyObjectOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CopyObjectOutput
impl Debug for CopyObjectOutput
§impl PartialEq for CopyObjectOutput
impl PartialEq for CopyObjectOutput
§fn eq(&self, other: &CopyObjectOutput) -> bool
fn eq(&self, other: &CopyObjectOutput) -> bool
self
and other
values to be equal, and is used
by ==
.§impl RequestId for CopyObjectOutput
impl RequestId for CopyObjectOutput
§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.