pub struct FlightLeg {
pub airline: String,
pub number: String,
pub from: FlightStop,
pub to: FlightStop,
pub departure: String,
pub arrival: String,
pub duration: f64,
pub aircraft: Option<String>,
pub logo: Option<String>,
}Expand description
Times are local to each airport, YYYY-MM-DDTHH:mm.
Fields§
§airline: String§number: String§from: FlightStop§to: FlightStop§departure: String§arrival: String§duration: f64Seconds.
aircraft: Option<String>§logo: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlightLeg
impl<'de> Deserialize<'de> for FlightLeg
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 FlightLeg
impl Freeze for FlightLeg
impl Move for FlightLeg
impl RefUnwindSafe for FlightLeg
impl Send for FlightLeg
impl Sync for FlightLeg
impl Unpin for FlightLeg
impl UnsafeUnpin for FlightLeg
impl UnwindSafe for FlightLeg
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