pub struct StockLevel {
pub sku: String,
pub name: String,
pub total_on_hand: Decimal,
pub total_allocated: Decimal,
pub total_available: Decimal,
pub locations: Vec<LocationStock>,
}Expand description
Stock level summary
Fields§
§sku: String§name: String§total_on_hand: Decimal§total_allocated: Decimal§total_available: Decimal§locations: Vec<LocationStock>Trait Implementations§
Source§impl Clone for StockLevel
impl Clone for StockLevel
Source§fn clone(&self) -> StockLevel
fn clone(&self) -> StockLevel
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 StockLevel
impl Debug for StockLevel
Source§impl<'de> Deserialize<'de> for StockLevel
impl<'de> Deserialize<'de> for StockLevel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StockLevel
impl Serialize for StockLevel
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 StockLevel
impl RefUnwindSafe for StockLevel
impl Send for StockLevel
impl Sync for StockLevel
impl Unpin for StockLevel
impl UnsafeUnpin for StockLevel
impl UnwindSafe for StockLevel
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