pub struct Detr<'a> {Show 18 fields
pub issued_by: Option<&'a str>,
pub org: Option<&'a str>,
pub dst: Option<&'a str>,
pub et: Option<&'a str>,
pub er: Option<&'a str>,
pub tour_code: Option<&'a str>,
pub receipt_printed: bool,
pub passenger: Option<&'a str>,
pub exchange: Option<&'a str>,
pub conj_tickets: Option<&'a str>,
pub flight_segs: Vec<DetrFlightSeg<'a>>,
pub fc: Option<&'a str>,
pub fare: Option<DetrFareItem<'a>>,
pub taxs: Option<HashMap<Option<&'a str>, DetrFareItem<'a>>>,
pub total: Option<DetrFareItem<'a>>,
pub fop: Option<&'a str>,
pub oi: Option<&'a str>,
pub tktn: Option<&'a str>,
}Expand description
The result that detr text parsed.
Fields§
§issued_by: Option<&'a str>airline issued by.
org: Option<&'a str>airport of departure
dst: Option<&'a str>airport of arrival
et: Option<&'a str>sale type of ticket,such as BSP-D,BSP-I,ARL-D,ARL-I.
er: Option<&'a str>remark/limit
tour_code: Option<&'a str>code of tour
receipt_printed: boolshow that whether the itinerary receipt has printed.
passenger: Option<&'a str>the name of passenger.
exchange: Option<&'a str>proof of exchange.
conj_tickets: Option<&'a str>conjoint ticket.
flight_segs: Vec<DetrFlightSeg<'a>>the segments of flight.
fc: Option<&'a str>fare of FC.
fare: Option<DetrFareItem<'a>>face value of ticket.
taxs: Option<HashMap<Option<&'a str>, DetrFareItem<'a>>>tax value of ticket.
total: Option<DetrFareItem<'a>>total value of ticket.
fop: Option<&'a str>pay method.
oi: Option<&'a str>§tktn: Option<&'a str>ticket number.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Detr<'a>
impl<'a> RefUnwindSafe for Detr<'a>
impl<'a> Send for Detr<'a>
impl<'a> Sync for Detr<'a>
impl<'a> Unpin for Detr<'a>
impl<'a> UnwindSafe for Detr<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more