pub enum TransactionOutcome {
Ok,
Ko,
CardNotPresent,
UnknownTag,
Unknown,
}Expand description
Normalized transaction outcome (mapped from the raw 2-digit result code):
"00" -> ok, "01" -> ko, "05" -> cardNotPresent, "09" -> unknownTag.
Variants§
Ok
Approved.
Ko
Declined / failed.
CardNotPresent
The card was not present when required.
UnknownTag
The requested TAG was unknown to the terminal.
Unknown
Unrecognized result code.
Trait Implementations§
Source§impl Clone for TransactionOutcome
impl Clone for TransactionOutcome
Source§fn clone(&self) -> TransactionOutcome
fn clone(&self) -> TransactionOutcome
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 moreimpl Copy for TransactionOutcome
Source§impl Debug for TransactionOutcome
impl Debug for TransactionOutcome
Source§impl Default for TransactionOutcome
impl Default for TransactionOutcome
Source§fn default() -> TransactionOutcome
fn default() -> TransactionOutcome
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionOutcome
impl<'de> Deserialize<'de> for TransactionOutcome
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
impl Eq for TransactionOutcome
Source§impl PartialEq for TransactionOutcome
impl PartialEq for TransactionOutcome
Source§impl Serialize for TransactionOutcome
impl Serialize for TransactionOutcome
impl StructuralPartialEq for TransactionOutcome
Auto Trait Implementations§
impl Freeze for TransactionOutcome
impl RefUnwindSafe for TransactionOutcome
impl Send for TransactionOutcome
impl Sync for TransactionOutcome
impl Unpin for TransactionOutcome
impl UnsafeUnpin for TransactionOutcome
impl UnwindSafe for TransactionOutcome
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