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 Flightwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<FlightLeg>: Freeze,
impl Move for Flight
impl RefUnwindSafe for Flight
impl Send for Flightwhere
RawVecInner: Send,
impl Sync for Flightwhere
RawVecInner: Sync,
impl Unpin for Flight
impl UnsafeUnpin for Flightwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<FlightLeg>: UnsafeUnpin,
impl UnwindSafe for Flightwhere
RawVecInner: UnwindSafe,
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