[][src]Struct brcode::BrCode

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 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: Stringpostal_code: Option<String>currency: Stringamount: Option<f64>country_code: Stringfield_template: Vec<Label>crc1610: Stringtemplates: Option<Vec<Template>>

Implementations

impl BrCode[src]

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

Trait Implementations

impl Clone for BrCode[src]

impl Debug for BrCode[src]

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

impl Deserialize for BrCode[src]

impl Display for BrCode[src]

impl From<Vec<(usize, Data)>> 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> 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.