pub struct BoardingPass {
pub transit_type: TransitType,
pub auxiliary_fields: Option<Vec<Field>>,
pub back_fields: Option<Vec<Field>>,
pub header_fields: Option<Vec<Field>>,
pub primary_fields: Option<Vec<Field>>,
pub secondary_fields: Option<Vec<Field>>,
}Expand description
Information specific to a boarding pass.
Keys that define the structure of the pass. These keys are used for all pass styles and partition the fields into the various parts of the pass.
Fields§
§transit_type: TransitTypeType of transit.
auxiliary_fields: Option<Vec<Field>>Additional fields to be displayed on the front of the pass.
back_fields: Option<Vec<Field>>Fields to be on the back of the pass.
header_fields: Option<Vec<Field>>Fields to be displayed in the header on the front of the pass.Use header fields sparingly; unlike all other fields, they remain visible when a stack of passes are displayed.
primary_fields: Option<Vec<Field>>Fields to be displayed prominently on the front of the pass.
secondary_fields: Option<Vec<Field>>Fields to be displayed on the front of the pass.
Implementations§
Source§impl BoardingPass
impl BoardingPass
Sourcepub fn new(transit_type: TransitType) -> Self
pub fn new(transit_type: TransitType) -> Self
Create a new Instance
Trait Implementations§
Source§impl Clone for BoardingPass
impl Clone for BoardingPass
Source§fn clone(&self) -> BoardingPass
fn clone(&self) -> BoardingPass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoardingPass
impl Debug for BoardingPass
Source§impl<'de> Deserialize<'de> for BoardingPass
impl<'de> Deserialize<'de> for BoardingPass
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 BoardingPass
impl RefUnwindSafe for BoardingPass
impl Send for BoardingPass
impl Sync for BoardingPass
impl Unpin for BoardingPass
impl UnsafeUnpin for BoardingPass
impl UnwindSafe for BoardingPass
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