pub struct MotorCycle {
pub weight: i32,
pub length: i32,
pub width: i32,
pub height: i32,
pub brand: String,
pub model: String,
pub is_side_car_included: Option<Option<bool>>,
pub contact_name: String,
pub contact_detail: Option<Box<ContactDetail>>,
pub license_plate: String,
}Fields§
§weight: i32weight in kg
length: i32size in cm
width: i32size in cm
height: i32size in cm
brand: StringFree text description of the brand (e.g. BMW)
model: StringFree text description of the model (e.g. X5)
is_side_car_included: Option<Option<bool>>deprecated use car of type SPECIAL_VEHILE instead
contact_name: StringName of a contact person or company in case the car transport is booked stand alone.
contact_detail: Option<Box<ContactDetail>>§license_plate: StringThe license plate is a personal data item and must not be provided in an offer request. It must be patched into the offer after the customer accepted the offer for booking
Implementations§
Trait Implementations§
Source§impl Clone for MotorCycle
impl Clone for MotorCycle
Source§fn clone(&self) -> MotorCycle
fn clone(&self) -> MotorCycle
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 MotorCycle
impl Debug for MotorCycle
Source§impl Default for MotorCycle
impl Default for MotorCycle
Source§fn default() -> MotorCycle
fn default() -> MotorCycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MotorCycle
impl<'de> Deserialize<'de> for MotorCycle
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 MotorCycle
impl PartialEq for MotorCycle
Source§impl Serialize for MotorCycle
impl Serialize for MotorCycle
impl StructuralPartialEq for MotorCycle
Auto Trait Implementations§
impl Freeze for MotorCycle
impl RefUnwindSafe for MotorCycle
impl Send for MotorCycle
impl Sync for MotorCycle
impl Unpin for MotorCycle
impl UnwindSafe for MotorCycle
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