pub struct ProductCreateInput {
pub business_id: String,
pub name: String,
pub unit_price: Decimal,
pub description: Option<String>,
pub default_sales_tax_ids: Option<Vec<String>>,
pub income_account_id: Option<String>,
pub expense_account_id: Option<String>,
}Expand description
Input for creating a product.
Fields§
§business_id: String§name: String§unit_price: Decimal§description: Option<String>§default_sales_tax_ids: Option<Vec<String>>§income_account_id: Option<String>§expense_account_id: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ProductCreateInput
impl Clone for ProductCreateInput
Source§fn clone(&self) -> ProductCreateInput
fn clone(&self) -> ProductCreateInput
Returns a duplicate of the value. Read more
1.0.0 · 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 ProductCreateInput
impl Debug for ProductCreateInput
Auto Trait Implementations§
impl Freeze for ProductCreateInput
impl RefUnwindSafe for ProductCreateInput
impl Send for ProductCreateInput
impl Sync for ProductCreateInput
impl Unpin for ProductCreateInput
impl UnsafeUnpin for ProductCreateInput
impl UnwindSafe for ProductCreateInput
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