pub struct CreateBomComponent {
pub component_product_id: Option<ProductId>,
pub component_sku: Option<String>,
pub name: String,
pub quantity: Decimal,
pub unit_of_measure: Option<String>,
pub position: Option<String>,
pub notes: Option<String>,
}Expand description
Input for creating a BOM component
Fields§
§component_product_id: Option<ProductId>§component_sku: Option<String>§name: String§quantity: Decimal§unit_of_measure: Option<String>§position: Option<String>§notes: Option<String>Trait Implementations§
Source§impl Clone for CreateBomComponent
impl Clone for CreateBomComponent
Source§fn clone(&self) -> CreateBomComponent
fn clone(&self) -> CreateBomComponent
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 CreateBomComponent
impl Debug for CreateBomComponent
Source§impl Default for CreateBomComponent
impl Default for CreateBomComponent
Source§fn default() -> CreateBomComponent
fn default() -> CreateBomComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateBomComponent
impl<'de> Deserialize<'de> for CreateBomComponent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBomComponent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBomComponent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateBomComponent
impl Serialize for CreateBomComponent
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 CreateBomComponent
impl RefUnwindSafe for CreateBomComponent
impl Send for CreateBomComponent
impl Sync for CreateBomComponent
impl Unpin for CreateBomComponent
impl UnsafeUnpin for CreateBomComponent
impl UnwindSafe for CreateBomComponent
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