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§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Barcode
impl<'de> Deserialize<'de> for Barcode
Source§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 Freeze for Barcode
impl RefUnwindSafe for Barcode
impl Send for Barcode
impl Sync for Barcode
impl Unpin for Barcode
impl UnsafeUnpin for Barcode
impl UnwindSafe for Barcode
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