#[non_exhaustive]pub struct VerifyMacOutput {
pub key_id: Option<String>,
pub mac_valid: bool,
pub mac_algorithm: Option<MacAlgorithmSpec>,
/* 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 HMAC KMS key used in the verification.
mac_valid: bool
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.
mac_algorithm: Option<MacAlgorithmSpec>
The MAC algorithm used in the verification.
Implementations§
Source§impl VerifyMacOutput
impl VerifyMacOutput
Sourcepub fn mac_valid(&self) -> bool
pub fn mac_valid(&self) -> bool
A Boolean value that indicates whether the HMAC was verified. A value of True
indicates that the HMAC (Mac
) was generated with the specified Message
, HMAC KMS key (KeyID
) and MacAlgorithm.
.
If the HMAC is not verified, the VerifyMac
operation fails with a KMSInvalidMacException
exception. This exception indicates that one or more of the inputs changed since the HMAC was computed.
Sourcepub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
pub fn mac_algorithm(&self) -> Option<&MacAlgorithmSpec>
The MAC algorithm used in the verification.
Source§impl VerifyMacOutput
impl VerifyMacOutput
Sourcepub fn builder() -> VerifyMacOutputBuilder
pub fn builder() -> VerifyMacOutputBuilder
Creates a new builder-style object to manufacture VerifyMacOutput
.
Trait Implementations§
Source§impl Clone for VerifyMacOutput
impl Clone for VerifyMacOutput
Source§fn clone(&self) -> VerifyMacOutput
fn clone(&self) -> VerifyMacOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VerifyMacOutput
impl Debug for VerifyMacOutput
Source§impl PartialEq for VerifyMacOutput
impl PartialEq for VerifyMacOutput
Source§impl RequestId for VerifyMacOutput
impl RequestId for VerifyMacOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for VerifyMacOutput
Auto Trait Implementations§
impl Freeze for VerifyMacOutput
impl RefUnwindSafe for VerifyMacOutput
impl Send for VerifyMacOutput
impl Sync for VerifyMacOutput
impl Unpin for VerifyMacOutput
impl UnwindSafe for VerifyMacOutput
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