#[non_exhaustive]pub enum ExportKeyMaterial {
Tr31KeyBlock(ExportTr31KeyBlock),
Tr34KeyBlock(ExportTr34KeyBlock),
Unknown,
}
Expand description
Parameter information for key material export from Amazon Web Services Payment Cryptography.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Tr31KeyBlock(ExportTr31KeyBlock)
Parameter information for key material export using TR-31 standard.
Tr34KeyBlock(ExportTr34KeyBlock)
Parameter information for key material export using TR-34 standard.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl ExportKeyMaterial
impl ExportKeyMaterial
sourcepub fn as_tr31_key_block(&self) -> Result<&ExportTr31KeyBlock, &Self>
pub fn as_tr31_key_block(&self) -> Result<&ExportTr31KeyBlock, &Self>
Tries to convert the enum instance into Tr31KeyBlock
, extracting the inner ExportTr31KeyBlock
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_tr31_key_block(&self) -> bool
pub fn is_tr31_key_block(&self) -> bool
Returns true if this is a Tr31KeyBlock
.
sourcepub fn as_tr34_key_block(&self) -> Result<&ExportTr34KeyBlock, &Self>
pub fn as_tr34_key_block(&self) -> Result<&ExportTr34KeyBlock, &Self>
Tries to convert the enum instance into Tr34KeyBlock
, extracting the inner ExportTr34KeyBlock
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_tr34_key_block(&self) -> bool
pub fn is_tr34_key_block(&self) -> bool
Returns true if this is a Tr34KeyBlock
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for ExportKeyMaterial
impl Clone for ExportKeyMaterial
source§fn clone(&self) -> ExportKeyMaterial
fn clone(&self) -> ExportKeyMaterial
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExportKeyMaterial
impl Debug for ExportKeyMaterial
source§impl PartialEq for ExportKeyMaterial
impl PartialEq for ExportKeyMaterial
source§fn eq(&self, other: &ExportKeyMaterial) -> bool
fn eq(&self, other: &ExportKeyMaterial) -> bool
self
and other
values to be equal, and is used
by ==
.