Trait schema_org_types::TripTrait
source · pub trait TripTrait {
Show 16 methods
// Required methods
fn get_arrival_time(&self) -> &[ArrivalTimeProperty];
fn take_arrival_time(&mut self) -> Vec<ArrivalTimeProperty>;
fn get_departure_time(&self) -> &[DepartureTimeProperty];
fn take_departure_time(&mut self) -> Vec<DepartureTimeProperty>;
fn get_itinerary(&self) -> &[ItineraryProperty];
fn take_itinerary(&mut self) -> Vec<ItineraryProperty>;
fn get_offers(&self) -> &[OffersProperty];
fn take_offers(&mut self) -> Vec<OffersProperty>;
fn get_part_of_trip(&self) -> &[PartOfTripProperty];
fn take_part_of_trip(&mut self) -> Vec<PartOfTripProperty>;
fn get_provider(&self) -> &[ProviderProperty];
fn take_provider(&mut self) -> Vec<ProviderProperty>;
fn get_sub_trip(&self) -> &[SubTripProperty];
fn take_sub_trip(&mut self) -> Vec<SubTripProperty>;
fn get_trip_origin(&self) -> &[TripOriginProperty];
fn take_trip_origin(&mut self) -> Vec<TripOriginProperty>;
}
Expand description
This trait is for properties from https://schema.org/Trip.
Required Methods§
sourcefn get_arrival_time(&self) -> &[ArrivalTimeProperty]
fn get_arrival_time(&self) -> &[ArrivalTimeProperty]
Get https://schema.org/arrivalTime from Self
as borrowed slice.
sourcefn 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.
sourcefn get_departure_time(&self) -> &[DepartureTimeProperty]
fn get_departure_time(&self) -> &[DepartureTimeProperty]
Get https://schema.org/departureTime from Self
as borrowed slice.
sourcefn 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.
sourcefn get_itinerary(&self) -> &[ItineraryProperty]
fn get_itinerary(&self) -> &[ItineraryProperty]
Get https://schema.org/itinerary from Self
as borrowed slice.
sourcefn take_itinerary(&mut self) -> Vec<ItineraryProperty>
fn take_itinerary(&mut self) -> Vec<ItineraryProperty>
Take https://schema.org/itinerary from Self
as owned vector.
sourcefn get_offers(&self) -> &[OffersProperty]
fn get_offers(&self) -> &[OffersProperty]
Get https://schema.org/offers from Self
as borrowed slice.
sourcefn take_offers(&mut self) -> Vec<OffersProperty>
fn take_offers(&mut self) -> Vec<OffersProperty>
Take https://schema.org/offers from Self
as owned vector.
sourcefn get_part_of_trip(&self) -> &[PartOfTripProperty]
fn get_part_of_trip(&self) -> &[PartOfTripProperty]
Get https://schema.org/partOfTrip from Self
as borrowed slice.
sourcefn 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.
sourcefn get_provider(&self) -> &[ProviderProperty]
fn get_provider(&self) -> &[ProviderProperty]
Get https://schema.org/provider from Self
as borrowed slice.
sourcefn take_provider(&mut self) -> Vec<ProviderProperty>
fn take_provider(&mut self) -> Vec<ProviderProperty>
Take https://schema.org/provider from Self
as owned vector.
sourcefn get_sub_trip(&self) -> &[SubTripProperty]
fn get_sub_trip(&self) -> &[SubTripProperty]
Get https://schema.org/subTrip from Self
as borrowed slice.
sourcefn 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.
sourcefn get_trip_origin(&self) -> &[TripOriginProperty]
fn get_trip_origin(&self) -> &[TripOriginProperty]
Get https://schema.org/tripOrigin from Self
as borrowed slice.
sourcefn 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.