pub struct UpdateLot {
pub status: Option<LotStatus>,
pub expiration_date: Option<DateTime<Utc>>,
pub best_before_date: Option<DateTime<Utc>>,
pub cost_per_unit: Option<Decimal>,
pub attributes: Option<Value>,
pub notes: Option<String>,
}Expand description
Input for updating a lot
Fields§
§status: Option<LotStatus>§expiration_date: Option<DateTime<Utc>>§best_before_date: Option<DateTime<Utc>>§cost_per_unit: Option<Decimal>§attributes: Option<Value>§notes: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateLot
impl<'de> Deserialize<'de> for UpdateLot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateLot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateLot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateLot
impl Serialize for UpdateLot
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 UpdateLot
impl RefUnwindSafe for UpdateLot
impl Send for UpdateLot
impl Sync for UpdateLot
impl Unpin for UpdateLot
impl UnsafeUnpin for UpdateLot
impl UnwindSafe for UpdateLot
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