pub enum TransStatus {
Success,
Failure,
Unable,
Attempted,
ChallengeRequired,
DecoupledRequired,
InformationalOnly,
Rejected,
}Expand description
Outcome of the authentication transaction.
Variants§
Success
Y — Authentication / Account Verification Successful
Failure
N — Not Authenticated / Account Not Verified
Unable
U — Authentication / Account Verification Could Not Be Performed
Attempted
A — Attempts Processing Performed
ChallengeRequired
C — Challenge Required; additional authentication needed
DecoupledRequired
D — Decoupled Authentication Confirmed
InformationalOnly
I — Informational Only; 3DS Requestor challenge preference acknowledged
Rejected
R — Authentication / Account Verification Rejected
Implementations§
Source§impl TransStatus
impl TransStatus
Sourcepub fn is_authenticated(self) -> bool
pub fn is_authenticated(self) -> bool
True if the authentication was successful (frictionless Y or attempted A).
Sourcepub fn requires_challenge(self) -> bool
pub fn requires_challenge(self) -> bool
True if a challenge must be presented to the cardholder.
Trait Implementations§
Source§impl Clone for TransStatus
impl Clone for TransStatus
Source§fn clone(&self) -> TransStatus
fn clone(&self) -> TransStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransStatus
impl Debug for TransStatus
Source§impl<'de> Deserialize<'de> for TransStatus
impl<'de> Deserialize<'de> for TransStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TransStatus
impl Hash for TransStatus
Source§impl PartialEq for TransStatus
impl PartialEq for TransStatus
Source§fn eq(&self, other: &TransStatus) -> bool
fn eq(&self, other: &TransStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransStatus
impl Serialize for TransStatus
impl Copy for TransStatus
impl Eq for TransStatus
impl StructuralPartialEq for TransStatus
Auto Trait Implementations§
impl Freeze for TransStatus
impl RefUnwindSafe for TransStatus
impl Send for TransStatus
impl Sync for TransStatus
impl Unpin for TransStatus
impl UnsafeUnpin for TransStatus
impl UnwindSafe for TransStatus
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
Mutably borrows from an owned value. Read more