pub struct PixDinamicoSchema<'a> {
pub format_indicator: Cow<'a, str>,
pub point_of_initiation_method: Option<Cow<'a, str>>,
pub merchant_account_information: MerchantAccountInformation<'a>,
pub merchant_category_code: Cow<'a, str>,
pub transaction_currency: Cow<'a, str>,
pub transaction_amount: Option<Cow<'a, str>>,
pub country_code: Cow<'a, str>,
pub merchant_name: Cow<'a, str>,
pub merchant_city: Cow<'a, str>,
pub postal_code: Option<Cow<'a, str>>,
pub additional_data: AdditionalData<'a>,
}
Fields§
§format_indicator: Cow<'a, str>
Versão do Payload QRCPS-MPM. Default em “01”
point_of_initiation_method: Option<Cow<'a, str>>
Está presente para indicar que não deve ser iniciado mais de um pagamento com este mesmo QR Code. Defaults em “12”.
merchant_account_information: MerchantAccountInformation<'a>
§merchant_category_code: Cow<'a, str>
Defaults to “0000”
transaction_currency: Cow<'a, str>
Defaults to “968”, as BRL.
transaction_amount: Option<Cow<'a, str>>
§country_code: Cow<'a, str>
ISO3166-1 alpha 2 Country Code Defaults to “BR”
merchant_name: Cow<'a, str>
Recipient’s name
merchant_city: Cow<'a, str>
City where transaction occurred
postal_code: Option<Cow<'a, str>>
§additional_data: AdditionalData<'a>
Implementations§
Source§impl<'a> PixDinamicoSchema<'a>
impl<'a> PixDinamicoSchema<'a>
pub fn serialize_with_src(&self) -> String
Source§impl<'a> PixDinamicoSchema<'a>
impl<'a> PixDinamicoSchema<'a>
Sourcepub fn from_str(source_str: &'a str) -> PixDinamicoSchema<'a>
pub fn from_str(source_str: &'a str) -> PixDinamicoSchema<'a>
Deserializes the source string as this struct.
Source§impl<'a> PixDinamicoSchema<'a>
impl<'a> PixDinamicoSchema<'a>
Sourcepub fn standard<MA, MC, TA, L>(
merchant_name: MA,
merchant_city: MC,
transaction_amount: TA,
location: L,
) -> PixDinamicoSchema<'a>
pub fn standard<MA, MC, TA, L>( merchant_name: MA, merchant_city: MC, transaction_amount: TA, location: L, ) -> PixDinamicoSchema<'a>
Creates the most basic version of the QR Code, with every possible field with its default.
Trait Implementations§
Source§impl<'a> Clone for PixDinamicoSchema<'a>
impl<'a> Clone for PixDinamicoSchema<'a>
Source§fn clone(&self) -> PixDinamicoSchema<'a>
fn clone(&self) -> PixDinamicoSchema<'a>
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<'a> Debug for PixDinamicoSchema<'a>
impl<'a> Debug for PixDinamicoSchema<'a>
Source§impl<'a> FromResponse<'a, PixDinamicoSchema<'a>> for PixDinamicoSchema<'a>
impl<'a> FromResponse<'a, PixDinamicoSchema<'a>> for PixDinamicoSchema<'a>
fn from_cobranca_imediata_basic<MN: Into<Cow<'a, str>>, MC: Into<Cow<'a, str>>>( cob: CobrancaImediata, merchant_name: MN, merchant_city: MC, ) -> PixDinamicoSchema<'a>
Source§impl<'a> Parsed<'a> for PixDinamicoSchema<'a>
impl<'a> Parsed<'a> for PixDinamicoSchema<'a>
fn from_lookup(map: &mut HashMap<&str, &'a str>) -> PixDinamicoSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for PixDinamicoSchema<'a>
impl<'a> RefUnwindSafe for PixDinamicoSchema<'a>
impl<'a> Send for PixDinamicoSchema<'a>
impl<'a> Sync for PixDinamicoSchema<'a>
impl<'a> Unpin for PixDinamicoSchema<'a>
impl<'a> UnwindSafe for PixDinamicoSchema<'a>
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