pub struct FlightQuery {
pub from: String,
pub to: String,
pub date: String,
pub adults: Option<u32>,
pub cabin: Option<Cabin>,
pub currency: Option<String>,
pub max: Option<u32>,
}Expand description
One way flights between two airports (IATA codes, or several joined with commas) on a local date.
Fields§
§from: String§to: String§date: StringYYYY-MM-DD.
adults: Option<u32>§cabin: Option<Cabin>§currency: Option<String>§max: Option<u32>Trait Implementations§
Source§impl Clone for FlightQuery
impl Clone for FlightQuery
Source§impl Debug for FlightQuery
impl Debug for FlightQuery
Source§impl Default for FlightQuery
impl Default for FlightQuery
Source§impl<'de> Deserialize<'de> for FlightQuery
impl<'de> Deserialize<'de> for FlightQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for FlightQuery
impl Freeze for FlightQuery
impl Move for FlightQuery
impl RefUnwindSafe for FlightQuery
impl Send for FlightQuery
impl Sync for FlightQuery
impl Unpin for FlightQuery
impl UnsafeUnpin for FlightQuery
impl UnwindSafe for FlightQuery
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