pub struct LegacyReservationParameter {
pub travel_class: String,
pub service_level_code: String,
pub service_code: String,
pub berth_type: Option<Option<String>>,
pub coach_type_code: Option<Option<String>>,
pub compartment_type_code: Option<Option<String>>,
pub tariffs: Option<Vec<LegacyReservationTariff>>,
}Expand description
LegacyReservationParameter : reservation parameter to support the UIC 90918-1 interface for booking
Fields§
§travel_class: String90918-1 class code in reservation
service_level_code: Stringservice level code defined in UIC 90918-1
service_code: Stringservice code to be used in reservation
berth_type: Option<Option<String>>berth type code in UIC 90918-1 to be used in reservation
coach_type_code: Option<Option<String>>coach type code in UIC 90918-1 to be used in reservation
compartment_type_code: Option<Option<String>>compartment type code in UIC 90918-1 to be used in reservation
tariffs: Option<Vec<LegacyReservationTariff>>tariff according to UIC 90918-1 to be used for booking
Implementations§
Trait Implementations§
Source§impl Clone for LegacyReservationParameter
impl Clone for LegacyReservationParameter
Source§fn clone(&self) -> LegacyReservationParameter
fn clone(&self) -> LegacyReservationParameter
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 LegacyReservationParameter
impl Debug for LegacyReservationParameter
Source§impl Default for LegacyReservationParameter
impl Default for LegacyReservationParameter
Source§fn default() -> LegacyReservationParameter
fn default() -> LegacyReservationParameter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LegacyReservationParameter
impl<'de> Deserialize<'de> for LegacyReservationParameter
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 LegacyReservationParameter
Auto Trait Implementations§
impl Freeze for LegacyReservationParameter
impl RefUnwindSafe for LegacyReservationParameter
impl Send for LegacyReservationParameter
impl Sync for LegacyReservationParameter
impl Unpin for LegacyReservationParameter
impl UnwindSafe for LegacyReservationParameter
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