pub struct Car {Show 14 fields
pub weight: i32,
pub length: i32,
pub width: i32,
pub height: i32,
pub brand: String,
pub model: String,
pub special_type: Option<Option<String>>,
pub roof_width: i32,
pub textile_roof: Option<bool>,
pub rack: Option<Box<CarRack>>,
pub attached_items: Option<Vec<String>>,
pub contact_name: Option<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)
special_type: Option<Option<String>>§roof_width: i32§textile_roof: Option<bool>indication that the car has a textile rook only
rack: Option<Box<CarRack>>§attached_items: Option<Vec<String>>Indication of items attached to the car
contact_name: Option<String>Name 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<'de> Deserialize<'de> for Car
impl<'de> Deserialize<'de> for Car
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 Car
Auto Trait Implementations§
impl Freeze for Car
impl RefUnwindSafe for Car
impl Send for Car
impl Sync for Car
impl Unpin for Car
impl UnwindSafe for Car
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