pub struct TripOptionsRequest {
pub max_price: Option<String>,
pub passengers: Option<PassengerCounts>,
pub refundable: Option<bool>,
pub sale_country: Option<String>,
pub slice: Option<Vec<SliceInput>>,
pub solutions: Option<i32>,
pub ticketing_country: Option<String>,
}Expand description
A QPX Express search request, which will yield one or more solutions.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max_price: Option<String>Do not return solutions that cost more than this price. The alphabetical part of the price is in ISO 4217. The format, in regex, is [A-Z]{3}\d+(.\d+)? Example: $102.07
passengers: Option<PassengerCounts>Counts for each passenger type in the request.
refundable: Option<bool>Return only solutions with refundable fares.
sale_country: Option<String>IATA country code representing the point of sale. This determines the “equivalent amount paid” currency for the ticket.
slice: Option<Vec<SliceInput>>The slices that make up the itinerary of this trip. A slice represents a traveler’s intent, the portion of a low-fare search corresponding to a traveler’s request to get between two points. One-way journeys are generally expressed using one slice, round-trips using two. An example of a one slice trip with three segments might be BOS-SYD, SYD-LAX, LAX-BOS if the traveler only stopped in SYD and LAX just long enough to change planes.
solutions: Option<i32>The number of solutions to return, maximum 500.
ticketing_country: Option<String>IATA country code representing the point of ticketing.
Trait Implementations§
Source§impl Clone for TripOptionsRequest
impl Clone for TripOptionsRequest
Source§fn clone(&self) -> TripOptionsRequest
fn clone(&self) -> TripOptionsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more