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§

source

fn get_arrival_platform(&self) -> &[ArrivalPlatformProperty]

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

source

fn take_arrival_platform(&mut self) -> Vec<ArrivalPlatformProperty>

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

source

fn get_arrival_station(&self) -> &[ArrivalStationProperty]

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

source

fn take_arrival_station(&mut self) -> Vec<ArrivalStationProperty>

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

source

fn get_departure_platform(&self) -> &[DeparturePlatformProperty]

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

source

fn take_departure_platform(&mut self) -> Vec<DeparturePlatformProperty>

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

source

fn get_departure_station(&self) -> &[DepartureStationProperty]

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

source

fn take_departure_station(&mut self) -> Vec<DepartureStationProperty>

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

source

fn get_train_name(&self) -> &[TrainNameProperty]

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

source

fn take_train_name(&mut self) -> Vec<TrainNameProperty>

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

source

fn get_train_number(&self) -> &[TrainNumberProperty]

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

source

fn take_train_number(&mut self) -> Vec<TrainNumberProperty>

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

Implementors§