pub struct PixPaymentInfo {
pub rail: Rail,
pub addressing_system: AddressingSystem,
pub account_holder_given_name: String,
pub account_holder_surname: String,
pub country: String,
pub pix_key: String,
pub bank_name: Option<String>,
pub bank_code: Option<String>,
pub key_type: KeyType,
}Expand description
PixPaymentInfo : PIX payment information for Brazilian instant payments
Fields§
§rail: RailThe payment rail type for PIX transfers
addressing_system: AddressingSystemThe addressing system used for PIX transfers
account_holder_given_name: StringThe given name (first name) of the account holder
account_holder_surname: StringThe surname (last name) of the account holder
country: StringThe country for the transfer (ISO 3166-1 alpha-2 code)
pix_key: StringThe PIX key used for the transfer
bank_name: Option<String>The name of the bank
bank_code: Option<String>The bank code (ISPB - Identificador do Sistema de Pagamentos Brasileiros)
key_type: KeyTypeThe type of PIX key being used
Implementations§
Source§impl PixPaymentInfo
impl PixPaymentInfo
Sourcepub fn new(
rail: Rail,
addressing_system: AddressingSystem,
account_holder_given_name: String,
account_holder_surname: String,
country: String,
pix_key: String,
key_type: KeyType,
) -> PixPaymentInfo
pub fn new( rail: Rail, addressing_system: AddressingSystem, account_holder_given_name: String, account_holder_surname: String, country: String, pix_key: String, key_type: KeyType, ) -> PixPaymentInfo
PIX payment information for Brazilian instant payments
Trait Implementations§
Source§impl Clone for PixPaymentInfo
impl Clone for PixPaymentInfo
Source§fn clone(&self) -> PixPaymentInfo
fn clone(&self) -> PixPaymentInfo
Returns a duplicate 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 PixPaymentInfo
impl Debug for PixPaymentInfo
Source§impl Default for PixPaymentInfo
impl Default for PixPaymentInfo
Source§fn default() -> PixPaymentInfo
fn default() -> PixPaymentInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PixPaymentInfo
impl<'de> Deserialize<'de> for PixPaymentInfo
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 PartialEq for PixPaymentInfo
impl PartialEq for PixPaymentInfo
Source§impl Serialize for PixPaymentInfo
impl Serialize for PixPaymentInfo
impl StructuralPartialEq for PixPaymentInfo
Auto Trait Implementations§
impl Freeze for PixPaymentInfo
impl RefUnwindSafe for PixPaymentInfo
impl Send for PixPaymentInfo
impl Sync for PixPaymentInfo
impl Unpin for PixPaymentInfo
impl UnwindSafe for PixPaymentInfo
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