[][src]Struct scannit_core::eticket::ETicket

pub struct ETicket {
    pub product_code: ProductCode,
    pub customer_profile: u8,
    pub language: Language,
    pub validity_length: ValidityLength,
    pub validity_area: ValidityArea,
    pub sale_datetime: DateTime<Utc>,
    pub sale_device: SaleDevice,
    pub ticket_fare_cents: u16,
    pub group_size: u8,
    pub extra_zone: bool,
    pub period_pass_validity_area: ValidityArea,
    pub extension_product_code: ProductCode,
    pub extension_1_validity_area: ValidityArea,
    pub extension_1_fare_cents: u16,
    pub extension_2_validity_area: ValidityArea,
    pub extension_2_fare_cents: u16,
    pub sale_status: bool,
    pub validity_start_datetime: DateTime<Utc>,
    pub validity_end_datetime: DateTime<Utc>,
    pub validity_status: bool,
    pub boarding_datetime: DateTime<Utc>,
    pub boarding_vehicle: u16,
    pub boarding_location: BoardingLocation,
    pub boarding_direction: BoardingDirection,
    pub boarding_area: BoardingArea,
}

Fields

product_code: ProductCode

If ProductCodeGroup is > 0, this returns ProductCodeGroup

customer_profile: u8

If CustomerProfileGroup is > 0, this returns CustomerProfileGroup.

language: Languagevalidity_length: ValidityLength

If ValidityLengthGroup is > 0 this returns ValidityLengthGroup.

validity_area: ValidityAreasale_datetime: DateTime<Utc>sale_device: SaleDeviceticket_fare_cents: u16

If TicketFareGroup is > 0 this returns TicketFareGroup.

group_size: u8extra_zone: bool

if true, this is an extra zone on top of a PeriodPass.

period_pass_validity_area: ValidityArea

The validity area for the PeriodPass associated with the extra zone ticket.

extension_product_code: ProductCodeextension_1_validity_area: ValidityAreaextension_1_fare_cents: u16extension_2_validity_area: ValidityAreaextension_2_fare_cents: u16sale_status: boolvalidity_start_datetime: DateTime<Utc>validity_end_datetime: DateTime<Utc>

If ValidityEndDateGroup and ValidityEndTimeGroup are > 0 this uses them instead.

validity_status: bool

True if the ticket is currently valid.

boarding_datetime: DateTime<Utc>boarding_vehicle: u16boarding_location: BoardingLocationboarding_direction: BoardingDirectionboarding_area: BoardingArea

Trait Implementations

impl Debug for ETicket[src]

Auto Trait Implementations

impl RefUnwindSafe for ETicket

impl Send for ETicket

impl Sync for ETicket

impl Unpin for ETicket

impl UnwindSafe for ETicket

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.