pub struct ServerSideEncryption { /* private fields */ }Expand description
Server-side encryption configuration for newly created objects
Implementations§
Source§impl ServerSideEncryption
impl ServerSideEncryption
Sourcepub fn new(sse_type: Option<String>, sse_kms_key_id: Option<String>) -> Self
pub fn new(sse_type: Option<String>, sse_kms_key_id: Option<String>) -> Self
Construct SSE settings from raw values provided via CLI
Sourcepub fn into_inner(
self,
) -> Result<(Option<String>, Option<String>), SseCorruptedError>
pub fn into_inner( self, ) -> Result<(Option<String>, Option<String>), SseCorruptedError>
Checks that SSE settings still match the checksum and returns the string representations of:
- the SSE type as it is expected by S3 API;
- and AWS KMS Key ID, if provided.
Sourcepub fn verify_response(
&self,
sse_type: Option<&str>,
sse_kms_key_id: Option<&str>,
) -> Result<(), SseCorruptedError>
pub fn verify_response( &self, sse_type: Option<&str>, sse_kms_key_id: Option<&str>, ) -> Result<(), SseCorruptedError>
Checks that values provided as arguments to this function match the values stored in the object. S3 will return some values for sse type and key even if they were not set on our side. We want to check only the values which we set.
Trait Implementations§
Source§impl Clone for ServerSideEncryption
impl Clone for ServerSideEncryption
Source§fn clone(&self) -> ServerSideEncryption
fn clone(&self) -> ServerSideEncryption
Returns a duplicate 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 ServerSideEncryption
impl Debug for ServerSideEncryption
Auto Trait Implementations§
impl Freeze for ServerSideEncryption
impl RefUnwindSafe for ServerSideEncryption
impl Send for ServerSideEncryption
impl Sync for ServerSideEncryption
impl Unpin for ServerSideEncryption
impl UnwindSafe for ServerSideEncryption
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