[][src]Struct scannit_core_ffi::models::FFIETicket

#[repr(C)]
pub struct FFIETicket {
    pub product_code_kind: ProductCodeKind,
    pub product_code_value: u16,
    pub customer_profile: u8,
    pub language: Language,
    pub validity_length_kind: ValidityLengthKind,
    pub validity_length_value: u8,
    pub validity_area_kind: ValidityAreaKind,
    pub validity_area_value: FFIByteBuffer,
    pub sale_datetime: UnixTimestamp,
    pub sale_device_kind: SaleDeviceKind,
    pub sale_device_value: u16,
    pub ticket_fare_cents: u16,
    pub group_size: u8,
    pub extra_zone: bool,
    pub period_pass_validity_area_kind: ValidityAreaKind,
    pub period_pass_validity_area_value: FFIByteBuffer,
    pub extension_product_code_kind: ProductCodeKind,
    pub extension_product_code_value: u16,
    pub extension_1_validity_area_kind: ValidityAreaKind,
    pub extension_1_validity_area_value: FFIByteBuffer,
    pub extension_1_fare_cents: u16,
    pub extension_2_validity_area_kind: ValidityAreaKind,
    pub extension_2_validity_area_value: FFIByteBuffer,
    pub extension_2_fare_cents: u16,
    pub sale_status: bool,
    pub validity_start_datetime: UnixTimestamp,
    pub validity_end_datetime: UnixTimestamp,
    pub validity_status: bool,
    pub boarding_datetime: UnixTimestamp,
    pub boarding_vehicle: u16,
    pub boarding_location_kind: BoardingLocationKind,
    pub boarding_location_value: u16,
    pub boarding_direction: BoardingDirection,
    pub boarding_area_kind: BoardingAreaKind,
    pub boarding_area_value: u8,
}

Fields

product_code_kind: ProductCodeKindproduct_code_value: u16customer_profile: u8language: Languagevalidity_length_kind: ValidityLengthKindvalidity_length_value: u8validity_area_kind: ValidityAreaKindvalidity_area_value: FFIByteBuffer

This is either a single positive integer, or short list of positive integers. We'll represent it as something that's always an array.

sale_datetime: UnixTimestampsale_device_kind: SaleDeviceKindsale_device_value: u16ticket_fare_cents: u16group_size: u8extra_zone: boolperiod_pass_validity_area_kind: ValidityAreaKind

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

period_pass_validity_area_value: FFIByteBuffer

This is either a single positive integer, or short list of positive integers. We'll represent it as something that's always an array.

extension_product_code_kind: ProductCodeKindextension_product_code_value: u16extension_1_validity_area_kind: ValidityAreaKindextension_1_validity_area_value: FFIByteBuffer

This is either a single positive integer, or short list of positive integers. We'll represent it as something that's always an array.

extension_1_fare_cents: u16extension_2_validity_area_kind: ValidityAreaKindextension_2_validity_area_value: FFIByteBuffer

This is either a single positive integer, or short list of positive integers. We'll represent it as something that's always an array.

extension_2_fare_cents: u16sale_status: boolvalidity_start_datetime: UnixTimestampvalidity_end_datetime: UnixTimestampvalidity_status: boolboarding_datetime: UnixTimestampboarding_vehicle: u16boarding_location_kind: BoardingLocationKindboarding_location_value: u16boarding_direction: BoardingDirectionboarding_area_kind: BoardingAreaKindboarding_area_value: u8

Auto Trait Implementations

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.