pub struct TransportableSpecification {
pub type: String,
pub car: Option<Box<CarSpecification>>,
pub motorcycle: Option<Box<MotorcycleSpecification>>,
pub trailer: Option<Box<CarSpecification>>,
}Expand description
TransportableSpecification : Transportables which are handled similar to passengers like dogs, bicycles, car transport. These transportables might need a ticket or reservation. The Transportable specification does not include personal data (e.g. a license plate.)
Fields§
§type: StringSubset of the values from the Passenger Type Code List Listed values here are examples.
car: Option<Box<CarSpecification>>§motorcycle: Option<Box<MotorcycleSpecification>>§trailer: Option<Box<CarSpecification>>Implementations§
Source§impl TransportableSpecification
impl TransportableSpecification
Sourcepub fn new(type: String) -> TransportableSpecification
pub fn new(type: String) -> TransportableSpecification
Transportables which are handled similar to passengers like dogs, bicycles, car transport. These transportables might need a ticket or reservation. The Transportable specification does not include personal data (e.g. a license plate.)
Trait Implementations§
Source§impl Clone for TransportableSpecification
impl Clone for TransportableSpecification
Source§fn clone(&self) -> TransportableSpecification
fn clone(&self) -> TransportableSpecification
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 TransportableSpecification
impl Debug for TransportableSpecification
Source§impl Default for TransportableSpecification
impl Default for TransportableSpecification
Source§fn default() -> TransportableSpecification
fn default() -> TransportableSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransportableSpecification
impl<'de> Deserialize<'de> for TransportableSpecification
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 TransportableSpecification
Auto Trait Implementations§
impl Freeze for TransportableSpecification
impl RefUnwindSafe for TransportableSpecification
impl Send for TransportableSpecification
impl Sync for TransportableSpecification
impl Unpin for TransportableSpecification
impl UnwindSafe for TransportableSpecification
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