pub struct TicketLeg {Show 14 fields
pub arrival_date_time: Option<String>,
pub carriage: Option<String>,
pub departure_date_time: Option<String>,
pub destination_name: Option<LocalizedString>,
pub destination_station_code: Option<String>,
pub fare_name: Option<LocalizedString>,
pub origin_name: Option<LocalizedString>,
pub origin_station_code: Option<String>,
pub platform: Option<String>,
pub ticket_seat: Option<TicketSeat>,
pub ticket_seats: Option<Vec<TicketSeat>>,
pub transit_operator_name: Option<LocalizedString>,
pub transit_terminus_name: Option<LocalizedString>,
pub zone: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§arrival_date_time: Option<String>
The date/time of arrival. This is an ISO 8601 extended format date/time, with or without an offset. Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the event were in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. The portion of the date/time without the offset is considered the “local date/time”. This should be the local date/time at the destination station. For example, if the event occurs at the 20th hour of June 5th, 2018 at the destination station, the local date/time portion should be 2018-06-05T20:00:00
. If the local date/time at the destination station is 4 hours before UTC, an offset of -04:00
may be appended. Without offset information, some rich features may not be available.
carriage: Option<String>
The train or ship name/number that the passsenger needs to board.
departure_date_time: Option<String>
The date/time of departure. This is required if there is no validity time interval set on the transit object. This is an ISO 8601 extended format date/time, with or without an offset. Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z
would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the event were in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52
would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. The portion of the date/time without the offset is considered the “local date/time”. This should be the local date/time at the origin station. For example, if the departure occurs at the 20th hour of June 5th, 2018 at the origin station, the local date/time portion should be 2018-06-05T20:00:00
. If the local date/time at the origin station is 4 hours before UTC, an offset of -04:00
may be appended. Without offset information, some rich features may not be available.
destination_name: Option<LocalizedString>
The destination name.
destination_station_code: Option<String>
The destination station code.
fare_name: Option<LocalizedString>
Short description/name of the fare for this leg of travel. Eg “Anytime Single Use”.
origin_name: Option<LocalizedString>
The name of the origin station. This is required if desinationName
is present or if originStationCode
is not present.
origin_station_code: Option<String>
The origin station code. This is required if destinationStationCode
is present or if originName
is not present.
platform: Option<String>
The platform or gate where the passenger can board the carriage.
ticket_seat: Option<TicketSeat>
The reserved seat for the passenger(s). If more than one seat is to be specified then use the ticketSeats
field instead. Both ticketSeat
and ticketSeats
may not be set.
ticket_seats: Option<Vec<TicketSeat>>
The reserved seat for the passenger(s). If only one seat is to be specified then use the ticketSeat
field instead. Both ticketSeat
and ticketSeats
may not be set.
transit_operator_name: Option<LocalizedString>
The name of the transit operator that is operating this leg of a trip.
transit_terminus_name: Option<LocalizedString>
Terminus station or destination of the train/bus/etc.
zone: Option<String>
The zone of boarding within the platform.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TicketLeg
impl<'de> Deserialize<'de> for TicketLeg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for TicketLeg
Auto Trait Implementations§
impl Freeze for TicketLeg
impl RefUnwindSafe for TicketLeg
impl Send for TicketLeg
impl Sync for TicketLeg
impl Unpin for TicketLeg
impl UnwindSafe for TicketLeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more