#[non_exhaustive]pub enum CryptogramAuthResponse {
ArpcMethod1(CryptogramVerificationArpcMethod1),
ArpcMethod2(CryptogramVerificationArpcMethod2),
Unknown,
}
Expand description
Parameters that are required for Authorization Response Cryptogram (ARPC) generation after Authorization Request Cryptogram (ARQC) verification is successful.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ArpcMethod1(CryptogramVerificationArpcMethod1)
Parameters that are required for ARPC response generation using method1 after ARQC verification is successful.
ArpcMethod2(CryptogramVerificationArpcMethod2)
Parameters that are required for ARPC response generation using method2 after ARQC verification is successful.
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 CryptogramAuthResponse
impl CryptogramAuthResponse
sourcepub fn as_arpc_method1(
&self
) -> Result<&CryptogramVerificationArpcMethod1, &Self>
pub fn as_arpc_method1( &self ) -> Result<&CryptogramVerificationArpcMethod1, &Self>
Tries to convert the enum instance into ArpcMethod1
, extracting the inner CryptogramVerificationArpcMethod1
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_arpc_method1(&self) -> bool
pub fn is_arpc_method1(&self) -> bool
Returns true if this is a ArpcMethod1
.
sourcepub fn as_arpc_method2(
&self
) -> Result<&CryptogramVerificationArpcMethod2, &Self>
pub fn as_arpc_method2( &self ) -> Result<&CryptogramVerificationArpcMethod2, &Self>
Tries to convert the enum instance into ArpcMethod2
, extracting the inner CryptogramVerificationArpcMethod2
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_arpc_method2(&self) -> bool
pub fn is_arpc_method2(&self) -> bool
Returns true if this is a ArpcMethod2
.
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 CryptogramAuthResponse
impl Clone for CryptogramAuthResponse
source§fn clone(&self) -> CryptogramAuthResponse
fn clone(&self) -> CryptogramAuthResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CryptogramAuthResponse
impl Debug for CryptogramAuthResponse
source§impl PartialEq for CryptogramAuthResponse
impl PartialEq for CryptogramAuthResponse
source§fn eq(&self, other: &CryptogramAuthResponse) -> bool
fn eq(&self, other: &CryptogramAuthResponse) -> bool
self
and other
values to be equal, and is used
by ==
.