pub struct SetItemCost {
pub sku: String,
pub cost_method: Option<CostMethod>,
pub standard_cost: Option<Decimal>,
pub material_cost: Option<Decimal>,
pub labor_cost: Option<Decimal>,
pub overhead_cost: Option<Decimal>,
pub currency: Option<CurrencyCode>,
}Expand description
Input for setting item cost.
Fields§
§sku: String§cost_method: Option<CostMethod>§standard_cost: Option<Decimal>§material_cost: Option<Decimal>§labor_cost: Option<Decimal>§overhead_cost: Option<Decimal>§currency: Option<CurrencyCode>Trait Implementations§
Source§impl Clone for SetItemCost
impl Clone for SetItemCost
Source§fn clone(&self) -> SetItemCost
fn clone(&self) -> SetItemCost
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 SetItemCost
impl Debug for SetItemCost
Source§impl Default for SetItemCost
impl Default for SetItemCost
Source§fn default() -> SetItemCost
fn default() -> SetItemCost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetItemCost
impl<'de> Deserialize<'de> for SetItemCost
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetItemCost, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetItemCost, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SetItemCost
impl Serialize for SetItemCost
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 SetItemCost
impl RefUnwindSafe for SetItemCost
impl Send for SetItemCost
impl Sync for SetItemCost
impl Unpin for SetItemCost
impl UnsafeUnpin for SetItemCost
impl UnwindSafe for SetItemCost
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