pub struct TicketSeat {
pub coach: Option<String>,
pub custom_fare_class: Option<LocalizedString>,
pub fare_class: Option<String>,
pub seat: Option<String>,
pub seat_assignment: Option<LocalizedString>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§coach: Option<String>
The identifier of the train car or coach in which the ticketed seat is located. Eg. “10”
custom_fare_class: Option<LocalizedString>
A custome fare class to be used if no fareClass
applies. Both fareClass
and customFareClass
may not be set.
fare_class: Option<String>
The fare class of the ticketed seat.
seat: Option<String>
The identifier of where the ticketed seat is located. Eg. “42”. If there is no specific identifier, use seatAssigment
instead.
seat_assignment: Option<LocalizedString>
The passenger’s seat assignment. Eg. “no specific seat”. To be used when there is no specific identifier to use in seat
.
Trait Implementations§
Source§impl Clone for TicketSeat
impl Clone for TicketSeat
Source§fn clone(&self) -> TicketSeat
fn clone(&self) -> TicketSeat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TicketSeat
impl Debug for TicketSeat
Source§impl Default for TicketSeat
impl Default for TicketSeat
Source§fn default() -> TicketSeat
fn default() -> TicketSeat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TicketSeat
impl<'de> Deserialize<'de> for TicketSeat
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TicketSeat
impl Serialize for TicketSeat
impl Part for TicketSeat
Auto Trait Implementations§
impl Freeze for TicketSeat
impl RefUnwindSafe for TicketSeat
impl Send for TicketSeat
impl Sync for TicketSeat
impl Unpin for TicketSeat
impl UnwindSafe for TicketSeat
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
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>
Converts
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>
Converts
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