pub struct AddCarton {
pub pack_task_id: Uuid,
pub package_type: PackageType,
pub weight_kg: Option<Decimal>,
pub length_cm: Option<Decimal>,
pub width_cm: Option<Decimal>,
pub height_cm: Option<Decimal>,
}Expand description
Input for adding a carton.
Fields§
§pack_task_id: Uuid§package_type: PackageType§weight_kg: Option<Decimal>§length_cm: Option<Decimal>§width_cm: Option<Decimal>§height_cm: Option<Decimal>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddCarton
impl<'de> Deserialize<'de> for AddCarton
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddCarton, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddCarton, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AddCarton
impl Serialize for AddCarton
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AddCarton
impl RefUnwindSafe for AddCarton
impl Send for AddCarton
impl Sync for AddCarton
impl Unpin for AddCarton
impl UnsafeUnpin for AddCarton
impl UnwindSafe for AddCarton
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