Struct schema_org_types::Flight
source · pub struct Flight {Show 35 fields
pub aircraft: Vec<AircraftProperty>,
pub arrival_airport: Vec<ArrivalAirportProperty>,
pub arrival_gate: Vec<ArrivalGateProperty>,
pub arrival_terminal: Vec<ArrivalTerminalProperty>,
pub boarding_policy: Vec<BoardingPolicyProperty>,
pub carrier: Vec<CarrierProperty>,
pub departure_airport: Vec<DepartureAirportProperty>,
pub departure_gate: Vec<DepartureGateProperty>,
pub departure_terminal: Vec<DepartureTerminalProperty>,
pub estimated_flight_duration: Vec<EstimatedFlightDurationProperty>,
pub flight_distance: Vec<FlightDistanceProperty>,
pub flight_number: Vec<FlightNumberProperty>,
pub meal_service: Vec<MealServiceProperty>,
pub seller: Vec<SellerProperty>,
pub web_checkin_time: Vec<WebCheckinTimeProperty>,
pub additional_type: Vec<AdditionalTypeProperty>,
pub alternate_name: Vec<AlternateNameProperty>,
pub description: Vec<DescriptionProperty>,
pub disambiguating_description: Vec<DisambiguatingDescriptionProperty>,
pub identifier: Vec<IdentifierProperty>,
pub image: Vec<ImageProperty>,
pub main_entity_of_page: Vec<MainEntityOfPageProperty>,
pub name: Vec<NameProperty>,
pub potential_action: Vec<PotentialActionProperty>,
pub same_as: Vec<SameAsProperty>,
pub subject_of: Vec<SubjectOfProperty>,
pub url: Vec<UrlProperty>,
pub arrival_time: Vec<ArrivalTimeProperty>,
pub departure_time: Vec<DepartureTimeProperty>,
pub itinerary: Vec<ItineraryProperty>,
pub offers: Vec<OffersProperty>,
pub part_of_trip: Vec<PartOfTripProperty>,
pub provider: Vec<ProviderProperty>,
pub sub_trip: Vec<SubTripProperty>,
pub trip_origin: Vec<TripOriginProperty>,
}
Expand description
Fields§
§aircraft: Vec<AircraftProperty>
§arrival_airport: Vec<ArrivalAirportProperty>
§arrival_gate: Vec<ArrivalGateProperty>
§arrival_terminal: Vec<ArrivalTerminalProperty>
§boarding_policy: Vec<BoardingPolicyProperty>
§carrier: Vec<CarrierProperty>
👎Deprecated: This schema is superseded by https://schema.org/provider.
§departure_airport: Vec<DepartureAirportProperty>
§departure_gate: Vec<DepartureGateProperty>
§departure_terminal: Vec<DepartureTerminalProperty>
§estimated_flight_duration: Vec<EstimatedFlightDurationProperty>
§flight_distance: Vec<FlightDistanceProperty>
§flight_number: Vec<FlightNumberProperty>
§meal_service: Vec<MealServiceProperty>
§seller: Vec<SellerProperty>
§web_checkin_time: Vec<WebCheckinTimeProperty>
§additional_type: Vec<AdditionalTypeProperty>
§alternate_name: Vec<AlternateNameProperty>
§description: Vec<DescriptionProperty>
§disambiguating_description: Vec<DisambiguatingDescriptionProperty>
§identifier: Vec<IdentifierProperty>
§image: Vec<ImageProperty>
§main_entity_of_page: Vec<MainEntityOfPageProperty>
§name: Vec<NameProperty>
§potential_action: Vec<PotentialActionProperty>
§same_as: Vec<SameAsProperty>
§subject_of: Vec<SubjectOfProperty>
§url: Vec<UrlProperty>
§arrival_time: Vec<ArrivalTimeProperty>
§departure_time: Vec<DepartureTimeProperty>
§itinerary: Vec<ItineraryProperty>
§offers: Vec<OffersProperty>
§part_of_trip: Vec<PartOfTripProperty>
§provider: Vec<ProviderProperty>
§sub_trip: Vec<SubTripProperty>
§trip_origin: Vec<TripOriginProperty>
Trait Implementations§
source§impl FlightTrait for Flight
impl FlightTrait for Flight
source§fn get_aircraft(&self) -> &[AircraftProperty]
fn get_aircraft(&self) -> &[AircraftProperty]
Get https://schema.org/aircraft from
Self
as borrowed slice.source§fn take_aircraft(&mut self) -> Vec<AircraftProperty>
fn take_aircraft(&mut self) -> Vec<AircraftProperty>
Take https://schema.org/aircraft from
Self
as owned vector.source§fn get_arrival_airport(&self) -> &[ArrivalAirportProperty]
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>
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]
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>
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]
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>
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]
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>
fn take_boarding_policy(&mut self) -> Vec<BoardingPolicyProperty>
Take https://schema.org/boardingPolicy from
Self
as owned vector.source§fn get_carrier(&self) -> &[CarrierProperty]
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>
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]
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>
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]
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>
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]
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>
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]
fn get_estimated_flight_duration(&self) -> &[EstimatedFlightDurationProperty]
Get https://schema.org/estimatedFlightDuration from
Self
as borrowed slice.source§fn 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.source§fn get_flight_distance(&self) -> &[FlightDistanceProperty]
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>
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]
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>
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]
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>
fn take_meal_service(&mut self) -> Vec<MealServiceProperty>
Take https://schema.org/mealService from
Self
as owned vector.source§fn get_seller(&self) -> &[SellerProperty]
fn get_seller(&self) -> &[SellerProperty]
Get https://schema.org/seller from
Self
as borrowed slice.source§fn take_seller(&mut self) -> Vec<SellerProperty>
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]
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>
fn take_web_checkin_time(&mut self) -> Vec<WebCheckinTimeProperty>
Take https://schema.org/webCheckinTime from
Self
as owned vector.source§impl ThingTrait for Flight
impl ThingTrait for Flight
source§fn get_additional_type(&self) -> &[AdditionalTypeProperty]
fn get_additional_type(&self) -> &[AdditionalTypeProperty]
Get https://schema.org/additionalType from
Self
as borrowed slice.source§fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>
fn take_additional_type(&mut self) -> Vec<AdditionalTypeProperty>
Take https://schema.org/additionalType from
Self
as owned vector.source§fn get_alternate_name(&self) -> &[AlternateNameProperty]
fn get_alternate_name(&self) -> &[AlternateNameProperty]
Get https://schema.org/alternateName from
Self
as borrowed slice.source§fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>
fn take_alternate_name(&mut self) -> Vec<AlternateNameProperty>
Take https://schema.org/alternateName from
Self
as owned vector.source§fn get_description(&self) -> &[DescriptionProperty]
fn get_description(&self) -> &[DescriptionProperty]
Get https://schema.org/description from
Self
as borrowed slice.source§fn take_description(&mut self) -> Vec<DescriptionProperty>
fn take_description(&mut self) -> Vec<DescriptionProperty>
Take https://schema.org/description from
Self
as owned vector.source§fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
fn get_disambiguating_description(&self) -> &[DisambiguatingDescriptionProperty]
Get https://schema.org/disambiguatingDescription from
Self
as borrowed slice.source§fn take_disambiguating_description(
&mut self
) -> Vec<DisambiguatingDescriptionProperty>
fn take_disambiguating_description( &mut self ) -> Vec<DisambiguatingDescriptionProperty>
Take https://schema.org/disambiguatingDescription from
Self
as owned vector.source§fn get_identifier(&self) -> &[IdentifierProperty]
fn get_identifier(&self) -> &[IdentifierProperty]
Get https://schema.org/identifier from
Self
as borrowed slice.source§fn take_identifier(&mut self) -> Vec<IdentifierProperty>
fn take_identifier(&mut self) -> Vec<IdentifierProperty>
Take https://schema.org/identifier from
Self
as owned vector.source§fn get_image(&self) -> &[ImageProperty]
fn get_image(&self) -> &[ImageProperty]
Get https://schema.org/image from
Self
as borrowed slice.source§fn take_image(&mut self) -> Vec<ImageProperty>
fn take_image(&mut self) -> Vec<ImageProperty>
Take https://schema.org/image from
Self
as owned vector.source§fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty]
fn get_main_entity_of_page(&self) -> &[MainEntityOfPageProperty]
Get https://schema.org/mainEntityOfPage from
Self
as borrowed slice.source§fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>
fn take_main_entity_of_page(&mut self) -> Vec<MainEntityOfPageProperty>
Take https://schema.org/mainEntityOfPage from
Self
as owned vector.source§fn get_name(&self) -> &[NameProperty]
fn get_name(&self) -> &[NameProperty]
Get https://schema.org/name from
Self
as borrowed slice.source§fn take_name(&mut self) -> Vec<NameProperty>
fn take_name(&mut self) -> Vec<NameProperty>
Take https://schema.org/name from
Self
as owned vector.source§fn get_potential_action(&self) -> &[PotentialActionProperty]
fn get_potential_action(&self) -> &[PotentialActionProperty]
Get https://schema.org/potentialAction from
Self
as borrowed slice.source§fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>
fn take_potential_action(&mut self) -> Vec<PotentialActionProperty>
Take https://schema.org/potentialAction from
Self
as owned vector.source§fn get_same_as(&self) -> &[SameAsProperty]
fn get_same_as(&self) -> &[SameAsProperty]
Get https://schema.org/sameAs from
Self
as borrowed slice.source§fn take_same_as(&mut self) -> Vec<SameAsProperty>
fn take_same_as(&mut self) -> Vec<SameAsProperty>
Take https://schema.org/sameAs from
Self
as owned vector.source§fn get_subject_of(&self) -> &[SubjectOfProperty]
fn get_subject_of(&self) -> &[SubjectOfProperty]
Get https://schema.org/subjectOf from
Self
as borrowed slice.source§fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>
fn take_subject_of(&mut self) -> Vec<SubjectOfProperty>
Take https://schema.org/subjectOf from
Self
as owned vector.source§fn get_url(&self) -> &[UrlProperty]
fn get_url(&self) -> &[UrlProperty]
Get https://schema.org/url from
Self
as borrowed slice.source§fn take_url(&mut self) -> Vec<UrlProperty>
fn take_url(&mut self) -> Vec<UrlProperty>
Take https://schema.org/url from
Self
as owned vector.source§impl TripTrait for Flight
impl TripTrait for Flight
source§fn get_arrival_time(&self) -> &[ArrivalTimeProperty]
fn get_arrival_time(&self) -> &[ArrivalTimeProperty]
Get https://schema.org/arrivalTime from
Self
as borrowed slice.source§fn take_arrival_time(&mut self) -> Vec<ArrivalTimeProperty>
fn take_arrival_time(&mut self) -> Vec<ArrivalTimeProperty>
Take https://schema.org/arrivalTime from
Self
as owned vector.source§fn get_departure_time(&self) -> &[DepartureTimeProperty]
fn get_departure_time(&self) -> &[DepartureTimeProperty]
Get https://schema.org/departureTime from
Self
as borrowed slice.source§fn take_departure_time(&mut self) -> Vec<DepartureTimeProperty>
fn take_departure_time(&mut self) -> Vec<DepartureTimeProperty>
Take https://schema.org/departureTime from
Self
as owned vector.source§fn get_itinerary(&self) -> &[ItineraryProperty]
fn get_itinerary(&self) -> &[ItineraryProperty]
Get https://schema.org/itinerary from
Self
as borrowed slice.source§fn take_itinerary(&mut self) -> Vec<ItineraryProperty>
fn take_itinerary(&mut self) -> Vec<ItineraryProperty>
Take https://schema.org/itinerary from
Self
as owned vector.source§fn get_offers(&self) -> &[OffersProperty]
fn get_offers(&self) -> &[OffersProperty]
Get https://schema.org/offers from
Self
as borrowed slice.source§fn take_offers(&mut self) -> Vec<OffersProperty>
fn take_offers(&mut self) -> Vec<OffersProperty>
Take https://schema.org/offers from
Self
as owned vector.source§fn get_part_of_trip(&self) -> &[PartOfTripProperty]
fn get_part_of_trip(&self) -> &[PartOfTripProperty]
Get https://schema.org/partOfTrip from
Self
as borrowed slice.source§fn take_part_of_trip(&mut self) -> Vec<PartOfTripProperty>
fn take_part_of_trip(&mut self) -> Vec<PartOfTripProperty>
Take https://schema.org/partOfTrip from
Self
as owned vector.source§fn get_provider(&self) -> &[ProviderProperty]
fn get_provider(&self) -> &[ProviderProperty]
Get https://schema.org/provider from
Self
as borrowed slice.source§fn take_provider(&mut self) -> Vec<ProviderProperty>
fn take_provider(&mut self) -> Vec<ProviderProperty>
Take https://schema.org/provider from
Self
as owned vector.source§fn get_sub_trip(&self) -> &[SubTripProperty]
fn get_sub_trip(&self) -> &[SubTripProperty]
Get https://schema.org/subTrip from
Self
as borrowed slice.source§fn take_sub_trip(&mut self) -> Vec<SubTripProperty>
fn take_sub_trip(&mut self) -> Vec<SubTripProperty>
Take https://schema.org/subTrip from
Self
as owned vector.source§fn get_trip_origin(&self) -> &[TripOriginProperty]
fn get_trip_origin(&self) -> &[TripOriginProperty]
Get https://schema.org/tripOrigin from
Self
as borrowed slice.source§fn take_trip_origin(&mut self) -> Vec<TripOriginProperty>
fn take_trip_origin(&mut self) -> Vec<TripOriginProperty>
Take https://schema.org/tripOrigin from
Self
as owned vector.Auto Trait Implementations§
impl RefUnwindSafe for Flight
impl Send for Flight
impl Sync for Flight
impl Unpin 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