pub struct CreateInventoryItem {
pub sku: String,
pub name: String,
pub description: Option<String>,
pub unit_of_measure: Option<String>,
pub initial_quantity: Option<Decimal>,
pub location_id: Option<i32>,
pub reorder_point: Option<Decimal>,
pub safety_stock: Option<Decimal>,
}Expand description
Input for creating inventory item
Fields§
§sku: String§name: String§description: Option<String>§unit_of_measure: Option<String>§initial_quantity: Option<Decimal>§location_id: Option<i32>§reorder_point: Option<Decimal>§safety_stock: Option<Decimal>Trait Implementations§
Source§impl Clone for CreateInventoryItem
impl Clone for CreateInventoryItem
Source§fn clone(&self) -> CreateInventoryItem
fn clone(&self) -> CreateInventoryItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateInventoryItem
impl Debug for CreateInventoryItem
Source§impl Default for CreateInventoryItem
impl Default for CreateInventoryItem
Source§fn default() -> CreateInventoryItem
fn default() -> CreateInventoryItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateInventoryItem
impl<'de> Deserialize<'de> for CreateInventoryItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInventoryItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateInventoryItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateInventoryItem
impl Serialize for CreateInventoryItem
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 CreateInventoryItem
impl RefUnwindSafe for CreateInventoryItem
impl Send for CreateInventoryItem
impl Sync for CreateInventoryItem
impl Unpin for CreateInventoryItem
impl UnsafeUnpin for CreateInventoryItem
impl UnwindSafe for CreateInventoryItem
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