Struct brcode::BrCode[][src]

pub struct BrCode {
    pub payload_version: u8,
    pub initiation_method: Option<u8>,
    pub merchant_account_information: Option<String>,
    pub merchant_information: Vec<MerchantInfo>,
    pub merchant_category_code: u32,
    pub merchant_name: String,
    pub merchant_city: String,
    pub convenience: Option<String>,
    pub convenience_fee_fixed: Option<String>,
    pub convenience_fee_percentage: Option<String>,
    pub postal_code: Option<String>,
    pub currency: String,
    pub amount: Option<f64>,
    pub country_code: String,
    pub field_template: Vec<Label>,
    pub crc1610: String,
    pub templates: Option<Vec<Template>>,
}

Fields

payload_version: u8initiation_method: Option<u8>merchant_account_information: Option<String>merchant_information: Vec<MerchantInfo>merchant_category_code: u32merchant_name: Stringmerchant_city: Stringconvenience: Option<String>convenience_fee_fixed: Option<String>convenience_fee_percentage: Option<String>postal_code: Option<String>currency: Stringamount: Option<f64>country_code: Stringfield_template: Vec<Label>crc1610: Stringtemplates: Option<Vec<Template>>

Implementations

impl BrCode[src]

pub fn is_pix(&self) -> bool[src]

pub fn get_transaction_id(&self) -> Option<String>[src]

pub fn get_alias(&self) -> Option<Vec<String>>[src]

pub fn get_message(&self) -> Option<Vec<String>>[src]

pub fn encode(self) -> String[src]

pub fn to_json(&self) -> String[src]

pub fn to_crc16_json(self) -> String[src]

pub fn to_svg_string(&self, ecc: QrCodeEcc, size: usize) -> String[src]

pub fn to_svg_standard_string(&self) -> String[src]

pub fn to_vec_u8(&self, ecc: QrCodeEcc, size: usize) -> Vec<u8>[src]

pub fn to_svg_file(&self, file_path: &str, ecc: QrCodeEcc, size: usize)[src]

pub fn to_standard_svg_file(&self, file_path: &str)[src]

pub fn to_png_file(&self, file_path: &str, ecc: QrCodeEcc, size: usize)[src]

Trait Implementations

impl Clone for BrCode[src]

impl Debug for BrCode[src]

impl Deserialize for BrCode[src]

impl<'de> Deserialize<'de> for BrCode[src]

impl Display for BrCode[src]

impl From<Vec<(usize, Data), Global>> for BrCode[src]

impl PartialEq<BrCode> for BrCode[src]

impl Serialize for BrCode[src]

impl Serialize for BrCode[src]

impl StructuralPartialEq for BrCode[src]

Auto Trait Implementations

impl RefUnwindSafe for BrCode

impl Send for BrCode

impl Sync for BrCode

impl Unpin for BrCode

impl UnwindSafe for BrCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.