Skip to main content

Bcbp

Struct Bcbp 

Source
pub struct Bcbp<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Bcbp<'a>

Source

pub fn from(input: &'a str) -> Result<Bcbp<'a>>

Source

pub fn legs(&self) -> &[Leg<'_>]

All legs encoded into the boarding pass. At least one needs to be present to form a valid boarding pass.

Source

pub fn security_data(&self) -> &SecurityData

A reference to the optional security data used to verify a boarding pass was not tamptered with.

Source

pub fn eticket_flag(&self) -> char

Used to differentiate between an electronic ticket (‘E’) and another type of travel document. Values are defined in Resolution 792. A space indicates the field is not set.

Source

pub fn pax_description(&self) -> Option<char>

This describes the passenger. Values are defined in Resolution 792. Spaces indicate the field is not set.

Source

pub fn pax_name(&self) -> &str

The name of the passenger. Up to 20 characters, left-aligned, space padded. The format is LAST_NAME/FIRST_NAME[TITLE]. There is no separator between the first name and the title, and no indication a title is present. Certain names have characters which cannot be translated and special handling may be required. Spaces indicate the field is not set.

Source

pub fn source_of_check_in(&self) -> Option<char>

This field reflects channel in which the customer initiated check-in. Values are defined in Resolution 792 Attachment C. Spaces indicate the field is not set.

Source

pub fn source_of_boarding_pass_issuance(&self) -> Option<char>

This field reflects channel which issued the boarding pass. Values are defined in Resolution 792. Spaces indicate the field is not set.

Source

pub fn date_of_issue_of_boarding_pass(&self) -> Option<&str>

Optionally the 4-digit Julian date representing when the boarding pass was issued. The first digit is the last digit of the year and the next three represent the number of days elapsed. For example: “6001” represnts January 1, 2016. “6366” represaents December 31, 2016 (a leap year). Spaces indicate the field is not set.

Source

pub fn doc_type(&self) -> Option<char>

The type of the document, ‘B’ indicating a boarding pass. Spaces indicate the field is not set.

Source

pub fn airline_designator_of_boarding_pass_issuer(&self) -> Option<&str>

Airline code of the boarding pass issuer. Two-character and three-letter IATA carrier designators are permitted and the string is left-justified and space padded. Spaces indicate the field is not set.

Source

pub fn baggage_tag_license_plate_numbers(&self) -> Option<&str>

This field allows carriers to populate baggage tag numbers and the number of consecutive bags. This 13-character fiels is divided into: 0: ‘0’ for interline tag, ‘1’ for fall-back tag, ‘2’ for interline rush tag. 2… 4: carrier numeric code. 5…10: carrier initial tag number with leading zeroes. 11…13: number of consecutive bags (up to 999). Spaces indicate the field is not set.

Source

pub fn first_non_consecutive_baggage_tag_license_plate_numbers( &self, ) -> Option<&str>

This field allows carriers who handle non-sequential bags to include a second set of them in the boarding pass data in in the same format as baggage_tag_license_plate_numbers. Spaces indicate the field is not set.

Source

pub fn second_non_consecutive_baggage_tag_license_plate_numbers( &self, ) -> Option<&str>

This field allows carriers who handle non-sequential bags to include a third set of them in the boarding pass data in in the same format as baggage_tag_license_plate_numbers. Spaces indicate the field is not set.

Trait Implementations§

Source§

impl<'a> Clone for Bcbp<'a>

Source§

fn clone(&self) -> Bcbp<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Bcbp<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for Bcbp<'a>

Source§

fn default() -> Bcbp<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Eq for Bcbp<'a>

Source§

impl<'a> Hash for Bcbp<'a>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'a> PartialEq for Bcbp<'a>

Source§

fn eq(&self, other: &Bcbp<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for Bcbp<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Bcbp<'a>

§

impl<'a> RefUnwindSafe for Bcbp<'a>

§

impl<'a> Send for Bcbp<'a>

§

impl<'a> Sync for Bcbp<'a>

§

impl<'a> Unpin for Bcbp<'a>

§

impl<'a> UnsafeUnpin for Bcbp<'a>

§

impl<'a> UnwindSafe for Bcbp<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.