pub struct MotorcycleSpecification {
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>>,
}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
Implementations§
Trait Implementations§
Source§impl Clone for MotorcycleSpecification
impl Clone for MotorcycleSpecification
Source§fn clone(&self) -> MotorcycleSpecification
fn clone(&self) -> MotorcycleSpecification
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 MotorcycleSpecification
impl Debug for MotorcycleSpecification
Source§impl Default for MotorcycleSpecification
impl Default for MotorcycleSpecification
Source§fn default() -> MotorcycleSpecification
fn default() -> MotorcycleSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MotorcycleSpecification
impl<'de> Deserialize<'de> for MotorcycleSpecification
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 MotorcycleSpecification
impl PartialEq for MotorcycleSpecification
Source§impl Serialize for MotorcycleSpecification
impl Serialize for MotorcycleSpecification
impl StructuralPartialEq for MotorcycleSpecification
Auto Trait Implementations§
impl Freeze for MotorcycleSpecification
impl RefUnwindSafe for MotorcycleSpecification
impl Send for MotorcycleSpecification
impl Sync for MotorcycleSpecification
impl Unpin for MotorcycleSpecification
impl UnwindSafe for MotorcycleSpecification
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