pub struct RecordCostVariance {
pub sku: String,
pub variance_type: VarianceType,
pub standard_cost: Decimal,
pub actual_cost: Decimal,
pub quantity: Decimal,
pub reference_type: Option<String>,
pub reference_id: Option<Uuid>,
pub notes: Option<String>,
}Expand description
Input for recording a cost variance.
Fields§
§sku: String§variance_type: VarianceType§standard_cost: Decimal§actual_cost: Decimal§quantity: Decimal§reference_type: Option<String>§reference_id: Option<Uuid>§notes: Option<String>Trait Implementations§
Source§impl Clone for RecordCostVariance
impl Clone for RecordCostVariance
Source§fn clone(&self) -> RecordCostVariance
fn clone(&self) -> RecordCostVariance
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 RecordCostVariance
impl Debug for RecordCostVariance
Source§impl<'de> Deserialize<'de> for RecordCostVariance
impl<'de> Deserialize<'de> for RecordCostVariance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordCostVariance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecordCostVariance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RecordCostVariance
impl Serialize for RecordCostVariance
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 RecordCostVariance
impl RefUnwindSafe for RecordCostVariance
impl Send for RecordCostVariance
impl Sync for RecordCostVariance
impl Unpin for RecordCostVariance
impl UnsafeUnpin for RecordCostVariance
impl UnwindSafe for RecordCostVariance
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