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