#[non_exhaustive]pub enum ImportKeyMaterial {
RootCertificatePublicKey(RootCertificatePublicKey),
Tr31KeyBlock(ImportTr31KeyBlock),
Tr34KeyBlock(ImportTr34KeyBlock),
TrustedCertificatePublicKey(TrustedCertificatePublicKey),
Unknown,
}
Expand description
Parameter information for key material import.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RootCertificatePublicKey(RootCertificatePublicKey)
Parameter information for root public key certificate import.
Tr31KeyBlock(ImportTr31KeyBlock)
Parameter information for key material import using TR-31 standard.
Tr34KeyBlock(ImportTr34KeyBlock)
Parameter information for key material import using TR-34 standard.
TrustedCertificatePublicKey(TrustedCertificatePublicKey)
Parameter information for trusted public key certificate import.
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 ImportKeyMaterial
impl ImportKeyMaterial
sourcepub fn as_root_certificate_public_key(
&self
) -> Result<&RootCertificatePublicKey, &Self>
pub fn as_root_certificate_public_key( &self ) -> Result<&RootCertificatePublicKey, &Self>
Tries to convert the enum instance into RootCertificatePublicKey
, extracting the inner RootCertificatePublicKey
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_root_certificate_public_key(&self) -> bool
pub fn is_root_certificate_public_key(&self) -> bool
Returns true if this is a RootCertificatePublicKey
.
sourcepub fn as_tr31_key_block(&self) -> Result<&ImportTr31KeyBlock, &Self>
pub fn as_tr31_key_block(&self) -> Result<&ImportTr31KeyBlock, &Self>
Tries to convert the enum instance into Tr31KeyBlock
, extracting the inner ImportTr31KeyBlock
.
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<&ImportTr34KeyBlock, &Self>
pub fn as_tr34_key_block(&self) -> Result<&ImportTr34KeyBlock, &Self>
Tries to convert the enum instance into Tr34KeyBlock
, extracting the inner ImportTr34KeyBlock
.
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 as_trusted_certificate_public_key(
&self
) -> Result<&TrustedCertificatePublicKey, &Self>
pub fn as_trusted_certificate_public_key( &self ) -> Result<&TrustedCertificatePublicKey, &Self>
Tries to convert the enum instance into TrustedCertificatePublicKey
, extracting the inner TrustedCertificatePublicKey
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_trusted_certificate_public_key(&self) -> bool
pub fn is_trusted_certificate_public_key(&self) -> bool
Returns true if this is a TrustedCertificatePublicKey
.
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 ImportKeyMaterial
impl Clone for ImportKeyMaterial
source§fn clone(&self) -> ImportKeyMaterial
fn clone(&self) -> ImportKeyMaterial
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportKeyMaterial
impl Debug for ImportKeyMaterial
source§impl PartialEq for ImportKeyMaterial
impl PartialEq for ImportKeyMaterial
source§fn eq(&self, other: &ImportKeyMaterial) -> bool
fn eq(&self, other: &ImportKeyMaterial) -> bool
self
and other
values to be equal, and is used
by ==
.