#[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 ==
.impl StructuralPartialEq for CryptogramAuthResponse
Auto Trait Implementations§
impl Freeze for CryptogramAuthResponse
impl RefUnwindSafe for CryptogramAuthResponse
impl Send for CryptogramAuthResponse
impl Sync for CryptogramAuthResponse
impl Unpin for CryptogramAuthResponse
impl UnwindSafe for CryptogramAuthResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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