pub struct FidelTransaction {
pub id: String,
pub card_id: String,
pub last_numbers: String,
pub scheme: String,
pub amount: f64,
pub currency: String,
pub brand_id: Option<String>,
pub merchant_name: Option<String>,
pub location_id: Option<String>,
pub datetime: String,
pub is_auth: Option<bool>,
}Fields§
§id: StringFidel’s transaction ID
card_id: StringCard ID (THIS IS WHAT WE HASH)
last_numbers: StringLast 4 digits
scheme: StringCard scheme (VISA, MASTERCARD)
amount: f64Amount in original currency
currency: StringCurrency code
brand_id: Option<String>Merchant info
merchant_name: Option<String>§location_id: Option<String>§datetime: StringTransaction date (ISO 8601)
is_auth: Option<bool>Auth vs Clearing
Trait Implementations§
Source§impl Debug for FidelTransaction
impl Debug for FidelTransaction
Source§impl<'de> Deserialize<'de> for FidelTransaction
impl<'de> Deserialize<'de> for FidelTransaction
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
Auto Trait Implementations§
impl Freeze for FidelTransaction
impl RefUnwindSafe for FidelTransaction
impl Send for FidelTransaction
impl Sync for FidelTransaction
impl Unpin for FidelTransaction
impl UnsafeUnpin for FidelTransaction
impl UnwindSafe for FidelTransaction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.