Struct mountpoint_s3_client::types::PutObjectParams
source · #[non_exhaustive]pub struct PutObjectParams {
pub trailing_checksums: bool,
pub storage_class: Option<String>,
pub server_side_encryption: Option<String>,
pub ssekms_key_id: Option<String>,
}Expand description
Parameters to a put_object request
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trailing_checksums: boolEnable Crc32c trailing checksums.
storage_class: Option<String>Storage class to be used when creating new S3 object
server_side_encryption: Option<String>The server-side encryption algorithm to be used for this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse)
ssekms_key_id: Option<String>If server_side_encryption has a valid value of aws:kms or aws:kms:dsse, this value may be used to specify AWS KMS key ID to be used
when creating new S3 object
Implementations§
source§impl PutObjectParams
impl PutObjectParams
sourcepub fn new() -> Self
pub fn new() -> Self
Create a default PutObjectParams.
sourcepub fn trailing_checksums(self, value: bool) -> Self
pub fn trailing_checksums(self, value: bool) -> Self
Set Crc32c trailing checksums.
sourcepub fn storage_class(self, value: String) -> Self
pub fn storage_class(self, value: String) -> Self
Set the storage class.
sourcepub fn server_side_encryption(self, value: Option<String>) -> Self
pub fn server_side_encryption(self, value: Option<String>) -> Self
Set server-side encryption type.
sourcepub fn ssekms_key_id(self, value: Option<String>) -> Self
pub fn ssekms_key_id(self, value: Option<String>) -> Self
Set KMS key ID to be used for server-side encryption.
Trait Implementations§
source§impl Clone for PutObjectParams
impl Clone for PutObjectParams
source§fn clone(&self) -> PutObjectParams
fn clone(&self) -> PutObjectParams
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 Debug for PutObjectParams
impl Debug for PutObjectParams
source§impl Default for PutObjectParams
impl Default for PutObjectParams
source§fn default() -> PutObjectParams
fn default() -> PutObjectParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PutObjectParams
impl Send for PutObjectParams
impl Sync for PutObjectParams
impl Unpin for PutObjectParams
impl UnwindSafe for PutObjectParams
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