Struct square_api_client::models::InventoryChange
source · [−]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
sourceimpl Clone for InventoryChange
impl Clone for InventoryChange
sourcefn clone(&self) -> InventoryChange
fn clone(&self) -> InventoryChange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InventoryChange
impl Debug for InventoryChange
sourceimpl<'de> Deserialize<'de> for InventoryChange
impl<'de> Deserialize<'de> for InventoryChange
sourcefn 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
sourceimpl PartialEq<InventoryChange> for InventoryChange
impl PartialEq<InventoryChange> for InventoryChange
sourcefn eq(&self, other: &InventoryChange) -> bool
fn eq(&self, other: &InventoryChange) -> bool
sourceimpl Serialize for InventoryChange
impl Serialize for InventoryChange
impl Eq for InventoryChange
impl StructuralEq for InventoryChange
impl StructuralPartialEq for InventoryChange
Auto Trait Implementations
impl RefUnwindSafe for InventoryChange
impl Send for InventoryChange
impl Sync for InventoryChange
impl Unpin for InventoryChange
impl UnwindSafe for InventoryChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.