#[non_exhaustive]pub struct DecapsulateOutput {
pub key_id: Option<String>,
pub shared_secret: Option<Blob>,
pub encapsulation_algorithm: Option<EncapsulationAlgorithmSpec>,
/* 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.key_id: Option<String>The identifier of the ML-KEM KMS key used to decapsulate the shared secret.
The plaintext shared secret recovered from the encapsulated form. It is a 32-byte value that matches the shared secret held by the encapsulating party. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
encapsulation_algorithm: Option<EncapsulationAlgorithmSpec>The key encapsulation algorithm used to recover the shared secret.
Implementations§
Source§impl DecapsulateOutput
impl DecapsulateOutput
Sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The identifier of the ML-KEM KMS key used to decapsulate the shared secret.
The plaintext shared secret recovered from the encapsulated form. It is a 32-byte value that matches the shared secret held by the encapsulating party. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Sourcepub fn encapsulation_algorithm(&self) -> Option<&EncapsulationAlgorithmSpec>
pub fn encapsulation_algorithm(&self) -> Option<&EncapsulationAlgorithmSpec>
The key encapsulation algorithm used to recover the shared secret.
Source§impl DecapsulateOutput
impl DecapsulateOutput
Sourcepub fn builder() -> DecapsulateOutputBuilder
pub fn builder() -> DecapsulateOutputBuilder
Creates a new builder-style object to manufacture DecapsulateOutput.
Trait Implementations§
Source§impl Clone for DecapsulateOutput
impl Clone for DecapsulateOutput
Source§fn clone(&self) -> DecapsulateOutput
fn clone(&self) -> DecapsulateOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecapsulateOutput
impl Debug for DecapsulateOutput
Source§impl PartialEq for DecapsulateOutput
impl PartialEq for DecapsulateOutput
Source§impl RequestId for DecapsulateOutput
impl RequestId for DecapsulateOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for DecapsulateOutput
Auto Trait Implementations§
impl !Freeze for DecapsulateOutput
impl RefUnwindSafe for DecapsulateOutput
impl Send for DecapsulateOutput
impl Sync for DecapsulateOutput
impl Unpin for DecapsulateOutput
impl UnsafeUnpin for DecapsulateOutput
impl UnwindSafe for DecapsulateOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more