Struct wallet_pass::template::Barcode[][src]

pub struct Barcode {
    pub alt_text: Option<String>,
    pub format: BarcodeFormat,
    pub message: String,
    pub message_encoding: String,
}
Expand description

Information specific to the pass’s barcode. Deprecated in iOS 9.0 and later; use barcodes instead.

Information about a pass’s barcode.

Fields

alt_text: Option<String>

Text displayed near the barcode. For example, a human-readable version of the barcode data in case the barcode doesn’t scan.

format: BarcodeFormat

Barcode format. PKBarcodeFormatCode128 may only be used for dictionaries in the barcodes array.

message: String

Message or payload to be displayed as a barcode.

message_encoding: String

Text encoding that is used to convert the message from the string representation to a data representation to render the barcode. The value is typically iso-8859-1, but you may use another encoding that is supported by your barcode scanning infrastructure.

Implementations

Create a new Instance

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.