pub trait FlightTrait {
Show 30 methods // Required methods fn get_aircraft(&self) -> &[AircraftProperty]; fn take_aircraft(&mut self) -> Vec<AircraftProperty>; fn get_arrival_airport(&self) -> &[ArrivalAirportProperty]; fn take_arrival_airport(&mut self) -> Vec<ArrivalAirportProperty>; fn get_arrival_gate(&self) -> &[ArrivalGateProperty]; fn take_arrival_gate(&mut self) -> Vec<ArrivalGateProperty>; fn get_arrival_terminal(&self) -> &[ArrivalTerminalProperty]; fn take_arrival_terminal(&mut self) -> Vec<ArrivalTerminalProperty>; fn get_boarding_policy(&self) -> &[BoardingPolicyProperty]; fn take_boarding_policy(&mut self) -> Vec<BoardingPolicyProperty>; fn get_carrier(&self) -> &[CarrierProperty]; fn take_carrier(&mut self) -> Vec<CarrierProperty>; fn get_departure_airport(&self) -> &[DepartureAirportProperty]; fn take_departure_airport(&mut self) -> Vec<DepartureAirportProperty>; fn get_departure_gate(&self) -> &[DepartureGateProperty]; fn take_departure_gate(&mut self) -> Vec<DepartureGateProperty>; fn get_departure_terminal(&self) -> &[DepartureTerminalProperty]; fn take_departure_terminal(&mut self) -> Vec<DepartureTerminalProperty>; fn get_estimated_flight_duration( &self ) -> &[EstimatedFlightDurationProperty]; fn take_estimated_flight_duration( &mut self ) -> Vec<EstimatedFlightDurationProperty>; fn get_flight_distance(&self) -> &[FlightDistanceProperty]; fn take_flight_distance(&mut self) -> Vec<FlightDistanceProperty>; fn get_flight_number(&self) -> &[FlightNumberProperty]; fn take_flight_number(&mut self) -> Vec<FlightNumberProperty>; fn get_meal_service(&self) -> &[MealServiceProperty]; fn take_meal_service(&mut self) -> Vec<MealServiceProperty>; fn get_seller(&self) -> &[SellerProperty]; fn take_seller(&mut self) -> Vec<SellerProperty>; fn get_web_checkin_time(&self) -> &[WebCheckinTimeProperty]; fn take_web_checkin_time(&mut self) -> Vec<WebCheckinTimeProperty>;
}
Expand description

This trait is for properties from https://schema.org/Flight.

Required Methods§

source

fn get_aircraft(&self) -> &[AircraftProperty]

Get https://schema.org/aircraft from Self as borrowed slice.

source

fn take_aircraft(&mut self) -> Vec<AircraftProperty>

Take https://schema.org/aircraft from Self as owned vector.

source

fn get_arrival_airport(&self) -> &[ArrivalAirportProperty]

Get https://schema.org/arrivalAirport from Self as borrowed slice.

source

fn take_arrival_airport(&mut self) -> Vec<ArrivalAirportProperty>

Take https://schema.org/arrivalAirport from Self as owned vector.

source

fn get_arrival_gate(&self) -> &[ArrivalGateProperty]

Get https://schema.org/arrivalGate from Self as borrowed slice.

source

fn take_arrival_gate(&mut self) -> Vec<ArrivalGateProperty>

Take https://schema.org/arrivalGate from Self as owned vector.

source

fn get_arrival_terminal(&self) -> &[ArrivalTerminalProperty]

Get https://schema.org/arrivalTerminal from Self as borrowed slice.

source

fn take_arrival_terminal(&mut self) -> Vec<ArrivalTerminalProperty>

Take https://schema.org/arrivalTerminal from Self as owned vector.

source

fn get_boarding_policy(&self) -> &[BoardingPolicyProperty]

Get https://schema.org/boardingPolicy from Self as borrowed slice.

source

fn take_boarding_policy(&mut self) -> Vec<BoardingPolicyProperty>

Take https://schema.org/boardingPolicy from Self as owned vector.

source

fn get_carrier(&self) -> &[CarrierProperty]

👎Deprecated: This schema is superseded by https://schema.org/provider.

Get https://schema.org/carrier from Self as borrowed slice.

source

fn take_carrier(&mut self) -> Vec<CarrierProperty>

👎Deprecated: This schema is superseded by https://schema.org/provider.

Take https://schema.org/carrier from Self as owned vector.

source

fn get_departure_airport(&self) -> &[DepartureAirportProperty]

Get https://schema.org/departureAirport from Self as borrowed slice.

source

fn take_departure_airport(&mut self) -> Vec<DepartureAirportProperty>

Take https://schema.org/departureAirport from Self as owned vector.

source

fn get_departure_gate(&self) -> &[DepartureGateProperty]

Get https://schema.org/departureGate from Self as borrowed slice.

source

fn take_departure_gate(&mut self) -> Vec<DepartureGateProperty>

Take https://schema.org/departureGate from Self as owned vector.

source

fn get_departure_terminal(&self) -> &[DepartureTerminalProperty]

Get https://schema.org/departureTerminal from Self as borrowed slice.

source

fn take_departure_terminal(&mut self) -> Vec<DepartureTerminalProperty>

Take https://schema.org/departureTerminal from Self as owned vector.

source

fn get_estimated_flight_duration(&self) -> &[EstimatedFlightDurationProperty]

source

fn take_estimated_flight_duration( &mut self ) -> Vec<EstimatedFlightDurationProperty>

source

fn get_flight_distance(&self) -> &[FlightDistanceProperty]

Get https://schema.org/flightDistance from Self as borrowed slice.

source

fn take_flight_distance(&mut self) -> Vec<FlightDistanceProperty>

Take https://schema.org/flightDistance from Self as owned vector.

source

fn get_flight_number(&self) -> &[FlightNumberProperty]

Get https://schema.org/flightNumber from Self as borrowed slice.

source

fn take_flight_number(&mut self) -> Vec<FlightNumberProperty>

Take https://schema.org/flightNumber from Self as owned vector.

source

fn get_meal_service(&self) -> &[MealServiceProperty]

Get https://schema.org/mealService from Self as borrowed slice.

source

fn take_meal_service(&mut self) -> Vec<MealServiceProperty>

Take https://schema.org/mealService from Self as owned vector.

source

fn get_seller(&self) -> &[SellerProperty]

Get https://schema.org/seller from Self as borrowed slice.

source

fn take_seller(&mut self) -> Vec<SellerProperty>

Take https://schema.org/seller from Self as owned vector.

source

fn get_web_checkin_time(&self) -> &[WebCheckinTimeProperty]

Get https://schema.org/webCheckinTime from Self as borrowed slice.

source

fn take_web_checkin_time(&mut self) -> Vec<WebCheckinTimeProperty>

Take https://schema.org/webCheckinTime from Self as owned vector.

Implementors§