pub struct NewItemRow<'a> {Show 18 fields
pub id: Uuid,
pub item_code: &'a str,
pub name: &'a str,
pub description: Option<&'a str>,
pub barcode: Option<&'a str>,
pub brand_id: Option<Uuid>,
pub item_group_id: Uuid,
pub default_uom_id: Uuid,
pub item_type: &'a str,
pub is_sales_item: bool,
pub is_purchase_item: bool,
pub is_stock_item: bool,
pub hsn_code: Option<&'a str>,
pub is_taxable: bool,
pub weight_per_unit: Option<Decimal>,
pub standard_cost: Option<Decimal>,
pub tags: &'a Value,
pub data: &'a Value,
}Expand description
The exact row a validated item insert writes.
Fields§
§id: Uuid§item_code: &'a str§name: &'a str§description: Option<&'a str>§barcode: Option<&'a str>§brand_id: Option<Uuid>§item_group_id: Uuid§default_uom_id: Uuid§item_type: &'a str§is_sales_item: bool§is_purchase_item: bool§is_stock_item: bool§hsn_code: Option<&'a str>§is_taxable: bool§weight_per_unit: Option<Decimal>§standard_cost: Option<Decimal>§data: &'a ValueAuto Trait Implementations§
impl<'a> Freeze for NewItemRow<'a>
impl<'a> RefUnwindSafe for NewItemRow<'a>
impl<'a> Send for NewItemRow<'a>
impl<'a> Sync for NewItemRow<'a>
impl<'a> Unpin for NewItemRow<'a>
impl<'a> UnsafeUnpin for NewItemRow<'a>
impl<'a> UnwindSafe for NewItemRow<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more