pub struct CreateBom {
pub product_id: ProductId,
pub name: String,
pub description: Option<String>,
pub revision: Option<String>,
pub components: Option<Vec<CreateBomComponent>>,
pub created_by: Option<Uuid>,
}Expand description
Input for creating a new BOM
Fields§
§product_id: ProductId§name: String§description: Option<String>§revision: Option<String>§components: Option<Vec<CreateBomComponent>>§created_by: Option<Uuid>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateBom
impl<'de> Deserialize<'de> for CreateBom
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateBom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateBom
impl Serialize for CreateBom
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 CreateBom
impl RefUnwindSafe for CreateBom
impl Send for CreateBom
impl Sync for CreateBom
impl Unpin for CreateBom
impl UnsafeUnpin for CreateBom
impl UnwindSafe for CreateBom
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