Struct paystack::Authorization
source · pub struct Authorization {Show 13 fields
pub authorization_code: Option<String>,
pub bin: Option<String>,
pub last4: Option<String>,
pub exp_month: Option<String>,
pub exp_year: Option<String>,
pub channel: Option<String>,
pub card_type: Option<String>,
pub bank: Option<String>,
pub country_code: Option<String>,
pub brand: Option<String>,
pub reusable: Option<bool>,
pub signature: Option<String>,
pub account_name: Option<String>,
}
Expand description
This struct represents the authorization data of the transaction status response
Fields§
Authorization code generated for the Transaction.
bin: Option<String>
Bin number for Transaction authorization.
last4: Option<String>
Last 4 digits of authorized card.
exp_month: Option<String>
Authorized card expiry month.
exp_year: Option<String>
Authorized card expiry year.
channel: Option<String>
Authorization channel. It could be card
or bank
.
card_type: Option<String>
Type of card used in the Authorization
bank: Option<String>
Name of bank associated with the Authorization.
country_code: Option<String>
Country code of the Authorization.
brand: Option<String>
Brand of of the Authorization if it is a card.
reusable: Option<bool>
Specifies if the Authorization is reusable.
signature: Option<String>
Signature of the Authorization.
account_name: Option<String>
Name of the account associated with the authorization.
Trait Implementations§
source§impl Clone for Authorization
impl Clone for Authorization
source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a copy of the value. Read more
1.0.0 · 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 Authorization
impl Debug for Authorization
source§impl<'de> Deserialize<'de> for Authorization
impl<'de> Deserialize<'de> for Authorization
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 RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
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