pub struct Vehicle {
pub coaches: Option<Vec<Coach>>,
pub reservation_refs: Option<Vec<String>>,
}Expand description
Vehicle : List of the coaches in a vehicle run ordered according to the physical ordering of the vehicle.
Fields§
§coaches: Option<Vec<Coach>>§reservation_refs: Option<Vec<String>>References to the reservations/fares for which all places in the vehicle can be selected. The reservation ids must be part of the list of reservation ids for which the consumer has requested the available places and the consumer must accept a list by setting singleSelectionMapsRequired to false
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vehicle
impl<'de> Deserialize<'de> for Vehicle
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
impl StructuralPartialEq for Vehicle
Auto Trait Implementations§
impl Freeze for Vehicle
impl RefUnwindSafe for Vehicle
impl Send for Vehicle
impl Sync for Vehicle
impl Unpin for Vehicle
impl UnwindSafe for Vehicle
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