#[non_exhaustive]pub enum SessionKeyDerivation {
Amex(SessionKeyAmex),
Emv2000(SessionKeyEmv2000),
EmvCommon(SessionKeyEmvCommon),
Mastercard(SessionKeyMastercard),
Visa(SessionKeyVisa),
Unknown,
}
Expand description
Parameters to derive a session key for Authorization Response Cryptogram (ARQC) verification.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Amex(SessionKeyAmex)
Parameters to derive session key for an Amex payment card for ARQC verification.
Emv2000(SessionKeyEmv2000)
Parameters to derive session key for an Emv2000 payment card for ARQC verification.
EmvCommon(SessionKeyEmvCommon)
Parameters to derive session key for an Emv common payment card for ARQC verification.
Mastercard(SessionKeyMastercard)
Parameters to derive session key for a Mastercard payment card for ARQC verification.
Visa(SessionKeyVisa)
Parameters to derive session key for a Visa payment cardfor ARQC verification.
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 SessionKeyDerivation
impl SessionKeyDerivation
sourcepub fn as_amex(&self) -> Result<&SessionKeyAmex, &Self>
pub fn as_amex(&self) -> Result<&SessionKeyAmex, &Self>
Tries to convert the enum instance into Amex
, extracting the inner SessionKeyAmex
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_emv2000(&self) -> Result<&SessionKeyEmv2000, &Self>
pub fn as_emv2000(&self) -> Result<&SessionKeyEmv2000, &Self>
Tries to convert the enum instance into Emv2000
, extracting the inner SessionKeyEmv2000
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_emv2000(&self) -> bool
pub fn is_emv2000(&self) -> bool
Returns true if this is a Emv2000
.
sourcepub fn as_emv_common(&self) -> Result<&SessionKeyEmvCommon, &Self>
pub fn as_emv_common(&self) -> Result<&SessionKeyEmvCommon, &Self>
Tries to convert the enum instance into EmvCommon
, extracting the inner SessionKeyEmvCommon
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_emv_common(&self) -> bool
pub fn is_emv_common(&self) -> bool
Returns true if this is a EmvCommon
.
sourcepub fn as_mastercard(&self) -> Result<&SessionKeyMastercard, &Self>
pub fn as_mastercard(&self) -> Result<&SessionKeyMastercard, &Self>
Tries to convert the enum instance into Mastercard
, extracting the inner SessionKeyMastercard
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_mastercard(&self) -> bool
pub fn is_mastercard(&self) -> bool
Returns true if this is a Mastercard
.
sourcepub fn as_visa(&self) -> Result<&SessionKeyVisa, &Self>
pub fn as_visa(&self) -> Result<&SessionKeyVisa, &Self>
Tries to convert the enum instance into Visa
, extracting the inner SessionKeyVisa
.
Returns Err(&Self)
if it can’t be converted.
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 SessionKeyDerivation
impl Clone for SessionKeyDerivation
source§fn clone(&self) -> SessionKeyDerivation
fn clone(&self) -> SessionKeyDerivation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionKeyDerivation
impl Debug for SessionKeyDerivation
source§impl PartialEq<SessionKeyDerivation> for SessionKeyDerivation
impl PartialEq<SessionKeyDerivation> for SessionKeyDerivation
source§fn eq(&self, other: &SessionKeyDerivation) -> bool
fn eq(&self, other: &SessionKeyDerivation) -> bool
self
and other
values to be equal, and is used
by ==
.