pub struct InventoryChange {
pub adjustment: InventoryAdjustment,
pub measurement_unit: CatalogMeasurementUnit,
pub measurement_unit_id: String,
pub physical_count: InventoryPhysicalCount,
pub transfer: InventoryTransfer,
pub change_type: InventoryChangeType,
}
Expand description
Changes created for the request.
Fields§
§adjustment: InventoryAdjustment
Contains details about the inventory adjustment when type is ADJUSTMENT, and is unset for all other change types.
measurement_unit: CatalogMeasurementUnit
Read only The CatalogMeasurementUnit object representing the catalog measurement unit
measurement_unit_id: String
ID of the CatalogMeasurementUnit object representing the catalog measurement unit
physical_count: InventoryPhysicalCount
Contains details about the physical count when type is PHYSICAL_COUNT, and is unset for all other change types.
transfer: InventoryTransfer
TContains details about the inventory transfer when type is TRANSFER, and is unset for all other change types.
change_type: InventoryChangeType
Indicates how the inventory change is applied. See InventoryChangeType for all possible values.
Trait Implementations§
Source§impl Clone for InventoryChange
impl Clone for InventoryChange
Source§fn clone(&self) -> InventoryChange
fn clone(&self) -> InventoryChange
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InventoryChange
impl Debug for InventoryChange
Source§impl<'de> Deserialize<'de> for InventoryChange
impl<'de> Deserialize<'de> for InventoryChange
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 InventoryChange
impl PartialEq for InventoryChange
Source§impl Serialize for InventoryChange
impl Serialize for InventoryChange
impl Eq for InventoryChange
impl StructuralPartialEq for InventoryChange
Auto Trait Implementations§
impl Freeze for InventoryChange
impl RefUnwindSafe for InventoryChange
impl Send for InventoryChange
impl Sync for InventoryChange
impl Unpin for InventoryChange
impl UnwindSafe for InventoryChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.