pub struct CreateCostAdjustment {
pub sku: String,
pub adjustment_type: CostAdjustmentType,
pub new_cost: Decimal,
pub reason: String,
pub created_by: Option<String>,
}Expand description
Input for creating a cost adjustment.
Fields§
§sku: String§adjustment_type: CostAdjustmentType§new_cost: Decimal§reason: String§created_by: Option<String>Trait Implementations§
Source§impl Clone for CreateCostAdjustment
impl Clone for CreateCostAdjustment
Source§fn clone(&self) -> CreateCostAdjustment
fn clone(&self) -> CreateCostAdjustment
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 CreateCostAdjustment
impl Debug for CreateCostAdjustment
Source§impl<'de> Deserialize<'de> for CreateCostAdjustment
impl<'de> Deserialize<'de> for CreateCostAdjustment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateCostAdjustment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateCostAdjustment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateCostAdjustment
impl Serialize for CreateCostAdjustment
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 CreateCostAdjustment
impl RefUnwindSafe for CreateCostAdjustment
impl Send for CreateCostAdjustment
impl Sync for CreateCostAdjustment
impl Unpin for CreateCostAdjustment
impl UnsafeUnpin for CreateCostAdjustment
impl UnwindSafe for CreateCostAdjustment
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