pub struct ReserveInventory {
pub sku: String,
pub location_id: Option<i32>,
pub quantity: Decimal,
pub reference_type: String,
pub reference_id: String,
pub expires_in_seconds: Option<i64>,
}Expand description
Input for reserving inventory
Fields§
§sku: String§location_id: Option<i32>§quantity: Decimal§reference_type: String§reference_id: String§expires_in_seconds: Option<i64>Trait Implementations§
Source§impl Clone for ReserveInventory
impl Clone for ReserveInventory
Source§fn clone(&self) -> ReserveInventory
fn clone(&self) -> ReserveInventory
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 ReserveInventory
impl Debug for ReserveInventory
Source§impl<'de> Deserialize<'de> for ReserveInventory
impl<'de> Deserialize<'de> for ReserveInventory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReserveInventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReserveInventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ReserveInventory
impl Serialize for ReserveInventory
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 ReserveInventory
impl RefUnwindSafe for ReserveInventory
impl Send for ReserveInventory
impl Sync for ReserveInventory
impl Unpin for ReserveInventory
impl UnsafeUnpin for ReserveInventory
impl UnwindSafe for ReserveInventory
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