Trait schema_org_types::FlightTrait
source · 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§
sourcefn get_aircraft(&self) -> &[AircraftProperty]
fn get_aircraft(&self) -> &[AircraftProperty]
Get https://schema.org/aircraft from Self
as borrowed slice.
sourcefn take_aircraft(&mut self) -> Vec<AircraftProperty>
fn take_aircraft(&mut self) -> Vec<AircraftProperty>
Take https://schema.org/aircraft from Self
as owned vector.
sourcefn get_arrival_airport(&self) -> &[ArrivalAirportProperty]
fn get_arrival_airport(&self) -> &[ArrivalAirportProperty]
Get https://schema.org/arrivalAirport from Self
as borrowed slice.
sourcefn take_arrival_airport(&mut self) -> Vec<ArrivalAirportProperty>
fn take_arrival_airport(&mut self) -> Vec<ArrivalAirportProperty>
Take https://schema.org/arrivalAirport from Self
as owned vector.
sourcefn get_arrival_gate(&self) -> &[ArrivalGateProperty]
fn get_arrival_gate(&self) -> &[ArrivalGateProperty]
Get https://schema.org/arrivalGate from Self
as borrowed slice.
sourcefn take_arrival_gate(&mut self) -> Vec<ArrivalGateProperty>
fn take_arrival_gate(&mut self) -> Vec<ArrivalGateProperty>
Take https://schema.org/arrivalGate from Self
as owned vector.
sourcefn get_arrival_terminal(&self) -> &[ArrivalTerminalProperty]
fn get_arrival_terminal(&self) -> &[ArrivalTerminalProperty]
Get https://schema.org/arrivalTerminal from Self
as borrowed slice.
sourcefn take_arrival_terminal(&mut self) -> Vec<ArrivalTerminalProperty>
fn take_arrival_terminal(&mut self) -> Vec<ArrivalTerminalProperty>
Take https://schema.org/arrivalTerminal from Self
as owned vector.
sourcefn get_boarding_policy(&self) -> &[BoardingPolicyProperty]
fn get_boarding_policy(&self) -> &[BoardingPolicyProperty]
Get https://schema.org/boardingPolicy from Self
as borrowed slice.
sourcefn take_boarding_policy(&mut self) -> Vec<BoardingPolicyProperty>
fn take_boarding_policy(&mut self) -> Vec<BoardingPolicyProperty>
Take https://schema.org/boardingPolicy from Self
as owned vector.
sourcefn get_carrier(&self) -> &[CarrierProperty]
fn get_carrier(&self) -> &[CarrierProperty]
Get https://schema.org/carrier from Self
as borrowed slice.
sourcefn take_carrier(&mut self) -> Vec<CarrierProperty>
fn take_carrier(&mut self) -> Vec<CarrierProperty>
Take https://schema.org/carrier from Self
as owned vector.
sourcefn get_departure_airport(&self) -> &[DepartureAirportProperty]
fn get_departure_airport(&self) -> &[DepartureAirportProperty]
Get https://schema.org/departureAirport from Self
as borrowed slice.
sourcefn take_departure_airport(&mut self) -> Vec<DepartureAirportProperty>
fn take_departure_airport(&mut self) -> Vec<DepartureAirportProperty>
Take https://schema.org/departureAirport from Self
as owned vector.
sourcefn get_departure_gate(&self) -> &[DepartureGateProperty]
fn get_departure_gate(&self) -> &[DepartureGateProperty]
Get https://schema.org/departureGate from Self
as borrowed slice.
sourcefn take_departure_gate(&mut self) -> Vec<DepartureGateProperty>
fn take_departure_gate(&mut self) -> Vec<DepartureGateProperty>
Take https://schema.org/departureGate from Self
as owned vector.
sourcefn get_departure_terminal(&self) -> &[DepartureTerminalProperty]
fn get_departure_terminal(&self) -> &[DepartureTerminalProperty]
Get https://schema.org/departureTerminal from Self
as borrowed slice.
sourcefn take_departure_terminal(&mut self) -> Vec<DepartureTerminalProperty>
fn take_departure_terminal(&mut self) -> Vec<DepartureTerminalProperty>
Take https://schema.org/departureTerminal from Self
as owned vector.
sourcefn get_estimated_flight_duration(&self) -> &[EstimatedFlightDurationProperty]
fn get_estimated_flight_duration(&self) -> &[EstimatedFlightDurationProperty]
Get https://schema.org/estimatedFlightDuration from Self
as borrowed slice.
sourcefn take_estimated_flight_duration(
&mut self
) -> Vec<EstimatedFlightDurationProperty>
fn take_estimated_flight_duration( &mut self ) -> Vec<EstimatedFlightDurationProperty>
Take https://schema.org/estimatedFlightDuration from Self
as owned vector.
sourcefn get_flight_distance(&self) -> &[FlightDistanceProperty]
fn get_flight_distance(&self) -> &[FlightDistanceProperty]
Get https://schema.org/flightDistance from Self
as borrowed slice.
sourcefn take_flight_distance(&mut self) -> Vec<FlightDistanceProperty>
fn take_flight_distance(&mut self) -> Vec<FlightDistanceProperty>
Take https://schema.org/flightDistance from Self
as owned vector.
sourcefn get_flight_number(&self) -> &[FlightNumberProperty]
fn get_flight_number(&self) -> &[FlightNumberProperty]
Get https://schema.org/flightNumber from Self
as borrowed slice.
sourcefn take_flight_number(&mut self) -> Vec<FlightNumberProperty>
fn take_flight_number(&mut self) -> Vec<FlightNumberProperty>
Take https://schema.org/flightNumber from Self
as owned vector.
sourcefn get_meal_service(&self) -> &[MealServiceProperty]
fn get_meal_service(&self) -> &[MealServiceProperty]
Get https://schema.org/mealService from Self
as borrowed slice.
sourcefn take_meal_service(&mut self) -> Vec<MealServiceProperty>
fn take_meal_service(&mut self) -> Vec<MealServiceProperty>
Take https://schema.org/mealService from Self
as owned vector.
sourcefn get_seller(&self) -> &[SellerProperty]
fn get_seller(&self) -> &[SellerProperty]
Get https://schema.org/seller from Self
as borrowed slice.
sourcefn take_seller(&mut self) -> Vec<SellerProperty>
fn take_seller(&mut self) -> Vec<SellerProperty>
Take https://schema.org/seller from Self
as owned vector.
sourcefn get_web_checkin_time(&self) -> &[WebCheckinTimeProperty]
fn get_web_checkin_time(&self) -> &[WebCheckinTimeProperty]
Get https://schema.org/webCheckinTime from Self
as borrowed slice.
sourcefn take_web_checkin_time(&mut self) -> Vec<WebCheckinTimeProperty>
fn take_web_checkin_time(&mut self) -> Vec<WebCheckinTimeProperty>
Take https://schema.org/webCheckinTime from Self
as owned vector.