Struct DetrFlightSeg

Source
pub struct DetrFlightSeg<'a> {
Show 22 fields pub transit_flag: Option<&'a str>, pub index: Option<i32>, pub org: Option<&'a str>, pub dst: Option<&'a str>, pub airline: Option<&'a str>, pub carrier: Option<&'a str>, pub flight_no: Option<&'a str>, pub flight_deptdate: Option<&'a str>, pub flight_depttime: Option<&'a str>, pub flight_class: Option<&'a str>, pub seat_status: Option<&'a str>, pub fare_basis: Option<&'a str>, pub nvb: Option<&'a str>, pub nva: Option<&'a str>, pub baggage: Option<&'a str>, pub ticket_status: Option<&'a str>, pub org_term: Option<&'a str>, pub dst_term: Option<&'a str>, pub bpnr: Option<&'a str>, pub cpnr: Option<&'a str>, pub system: Option<&'a str>, pub passenger_status_flag: Option<&'a str>,
}

Fields§

§transit_flag: Option<&'a str>

the flag that show how long to transit. such as O is more than 24 hours,X is less than 24 hours.

§index: Option<i32>

index of segment.

§org: Option<&'a str>

airport of departure

§dst: Option<&'a str>

airport of arrival

§airline: Option<&'a str>

airline code

§carrier: Option<&'a str>

the code of operator airline

§flight_no: Option<&'a str>

the number of flight.

§flight_deptdate: Option<&'a str>

departure date

§flight_depttime: Option<&'a str>

arrival time

§flight_class: Option<&'a str>

the cabin of flight.

§seat_status: Option<&'a str>

the status of seat, such as OK represent reserved (RR or HK), RQ represent candidate, NS represent no seat(like baby), SA represent free seat(like free),

§fare_basis: Option<&'a str>

the fare price of basis.

§nvb: Option<&'a str>

valid date.

§nva: Option<&'a str>

valid date.

§baggage: Option<&'a str>

baggage, such as K:km PC:piece NIL:no free luggage

§ticket_status: Option<&'a str>

the status of ticket, such as “OPEN FOR USE” represent unused, USED/FLOWN, VOID, REFUNDED, CHECK/IN, LIFT/BOARDED, SUSPENDED, EXCHANGED, AIRPORT CNTL, CPN NOTE, FIM EXCH.

§org_term: Option<&'a str>

the terminal of departure

§dst_term: Option<&'a str>

the terminal of arrival

§bpnr: Option<&'a str>

big pnr

§cpnr: Option<&'a str>

pnr

§system: Option<&'a str>§passenger_status_flag: Option<&'a str>

the status of passenger, such as OFLK represent checkin and unboarded, NOSH represent miss flight.

Trait Implementations§

Source§

impl<'a> Debug for DetrFlightSeg<'a>

Source§

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

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

impl<'a> Default for DetrFlightSeg<'a>

Source§

fn default() -> DetrFlightSeg<'a>

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

Auto Trait Implementations§

§

impl<'a> Freeze for DetrFlightSeg<'a>

§

impl<'a> RefUnwindSafe for DetrFlightSeg<'a>

§

impl<'a> Send for DetrFlightSeg<'a>

§

impl<'a> Sync for DetrFlightSeg<'a>

§

impl<'a> Unpin for DetrFlightSeg<'a>

§

impl<'a> UnwindSafe for DetrFlightSeg<'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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.