[][src]Struct scannit_core_ffi::models::FFITravelCard

#[repr(C)]
pub struct FFITravelCard {
    pub application_version: u8,
    pub application_key_version: u8,
    pub application_instance_id: *mut c_char,
    pub platform_type: u8,
    pub is_mac_protected: bool,
    pub application_issuing_date: UnixTimestamp,
    pub application_status: bool,
    pub application_unblocking_number: u8,
    pub application_transaction_counter: u32,
    pub action_list_counter: u32,
    pub period_pass: FFIPeriodPass,
    pub stored_value_cents: u32,
    pub last_load_datetime: UnixTimestamp,
    pub last_load_value: u32,
    pub last_load_organization_id: u16,
    pub last_load_device_num: u16,
    pub e_ticket: FFIETicket,
    pub history: FFIHistoryBuffer,
}

An FFI-friendly version of a travel card. Note that all dynamically-allocated members in this struct have already had their memory leaked. It is the responsibility of the external consumer to manually return this to Rust code to be freed.

Fields

application_version: u8application_key_version: u8application_instance_id: *mut c_charplatform_type: u8is_mac_protected: boolapplication_issuing_date: UnixTimestampapplication_status: boolapplication_unblocking_number: u8application_transaction_counter: u32action_list_counter: u32period_pass: FFIPeriodPassstored_value_cents: u32last_load_datetime: UnixTimestamplast_load_value: u32last_load_organization_id: u16last_load_device_num: u16e_ticket: FFIETickethistory: FFIHistoryBuffer

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.