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: BarcodeFormatBarcode format. PKBarcodeFormatCode128 may only be used for dictionaries in the barcodes array.
message: StringMessage or payload to be displayed as a barcode.
message_encoding: StringText 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
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
Auto Trait Implementations
impl RefUnwindSafe for Barcode
impl UnwindSafe for Barcode
Blanket Implementations
Mutably borrows from an owned value. Read more