Trait schema_org_types::TrainTripTrait
source · pub trait TrainTripTrait {
// Required methods
fn get_arrival_platform(&self) -> &[ArrivalPlatformProperty];
fn take_arrival_platform(&mut self) -> Vec<ArrivalPlatformProperty>;
fn get_arrival_station(&self) -> &[ArrivalStationProperty];
fn take_arrival_station(&mut self) -> Vec<ArrivalStationProperty>;
fn get_departure_platform(&self) -> &[DeparturePlatformProperty];
fn take_departure_platform(&mut self) -> Vec<DeparturePlatformProperty>;
fn get_departure_station(&self) -> &[DepartureStationProperty];
fn take_departure_station(&mut self) -> Vec<DepartureStationProperty>;
fn get_train_name(&self) -> &[TrainNameProperty];
fn take_train_name(&mut self) -> Vec<TrainNameProperty>;
fn get_train_number(&self) -> &[TrainNumberProperty];
fn take_train_number(&mut self) -> Vec<TrainNumberProperty>;
}
Expand description
This trait is for properties from https://schema.org/TrainTrip.
Required Methods§
sourcefn get_arrival_platform(&self) -> &[ArrivalPlatformProperty]
fn get_arrival_platform(&self) -> &[ArrivalPlatformProperty]
Get https://schema.org/arrivalPlatform from Self
as borrowed slice.
sourcefn take_arrival_platform(&mut self) -> Vec<ArrivalPlatformProperty>
fn take_arrival_platform(&mut self) -> Vec<ArrivalPlatformProperty>
Take https://schema.org/arrivalPlatform from Self
as owned vector.
sourcefn get_arrival_station(&self) -> &[ArrivalStationProperty]
fn get_arrival_station(&self) -> &[ArrivalStationProperty]
Get https://schema.org/arrivalStation from Self
as borrowed slice.
sourcefn take_arrival_station(&mut self) -> Vec<ArrivalStationProperty>
fn take_arrival_station(&mut self) -> Vec<ArrivalStationProperty>
Take https://schema.org/arrivalStation from Self
as owned vector.
sourcefn get_departure_platform(&self) -> &[DeparturePlatformProperty]
fn get_departure_platform(&self) -> &[DeparturePlatformProperty]
Get https://schema.org/departurePlatform from Self
as borrowed slice.
sourcefn take_departure_platform(&mut self) -> Vec<DeparturePlatformProperty>
fn take_departure_platform(&mut self) -> Vec<DeparturePlatformProperty>
Take https://schema.org/departurePlatform from Self
as owned vector.
sourcefn get_departure_station(&self) -> &[DepartureStationProperty]
fn get_departure_station(&self) -> &[DepartureStationProperty]
Get https://schema.org/departureStation from Self
as borrowed slice.
sourcefn take_departure_station(&mut self) -> Vec<DepartureStationProperty>
fn take_departure_station(&mut self) -> Vec<DepartureStationProperty>
Take https://schema.org/departureStation from Self
as owned vector.
sourcefn get_train_name(&self) -> &[TrainNameProperty]
fn get_train_name(&self) -> &[TrainNameProperty]
Get https://schema.org/trainName from Self
as borrowed slice.
sourcefn take_train_name(&mut self) -> Vec<TrainNameProperty>
fn take_train_name(&mut self) -> Vec<TrainNameProperty>
Take https://schema.org/trainName from Self
as owned vector.
sourcefn get_train_number(&self) -> &[TrainNumberProperty]
fn get_train_number(&self) -> &[TrainNumberProperty]
Get https://schema.org/trainNumber from Self
as borrowed slice.
sourcefn take_train_number(&mut self) -> Vec<TrainNumberProperty>
fn take_train_number(&mut self) -> Vec<TrainNumberProperty>
Take https://schema.org/trainNumber from Self
as owned vector.