pub struct LocationStock {
pub location_id: i32,
pub location_name: Option<String>,
pub on_hand: Decimal,
pub allocated: Decimal,
pub available: Decimal,
}Expand description
Stock at a specific location
Fields§
§location_id: i32§location_name: Option<String>§on_hand: Decimal§allocated: Decimal§available: DecimalTrait Implementations§
Source§impl Clone for LocationStock
impl Clone for LocationStock
Source§fn clone(&self) -> LocationStock
fn clone(&self) -> LocationStock
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 LocationStock
impl Debug for LocationStock
Source§impl<'de> Deserialize<'de> for LocationStock
impl<'de> Deserialize<'de> for LocationStock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocationStock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocationStock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LocationStock
impl Serialize for LocationStock
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 LocationStock
impl RefUnwindSafe for LocationStock
impl Send for LocationStock
impl Sync for LocationStock
impl Unpin for LocationStock
impl UnsafeUnpin for LocationStock
impl UnwindSafe for LocationStock
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