pub struct Flight {
pub id: String,
pub price: Money,
pub duration: f64,
pub stops: u32,
pub from: String,
pub to: String,
pub departure: String,
pub arrival: String,
pub airlines: Vec<String>,
pub logo: Option<String>,
pub legs: Vec<FlightLeg>,
}Fields§
§id: String§price: Money§duration: f64Seconds, layovers included.
stops: u32§from: String§to: String§departure: String§arrival: String§airlines: Vec<String>§logo: Option<String>§legs: Vec<FlightLeg>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flight
impl<'de> Deserialize<'de> for Flight
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 Flight
impl Freeze for Flight
impl Move for Flight
impl RefUnwindSafe for Flight
impl Send for Flight
impl Sync for Flight
impl Unpin for Flight
impl UnsafeUnpin for Flight
impl UnwindSafe for Flight
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