pub struct NewDeliveryRow<'a> {
pub id: Uuid,
pub delivery_number: &'a str,
pub branch_id: Option<Uuid>,
pub customer_id: Uuid,
pub source_so_id: Option<Uuid>,
pub warehouse_id: Uuid,
pub posting_date: NaiveDate,
pub currency: &'a str,
pub cogs_account_id: Uuid,
pub inventory_account_id: Uuid,
}Expand description
The exact row a draft Delivery Note header insert writes.
Mirrors the raw column shape rather than the DeliveryNote entity: total_cogs starts as a
literal 0 (it is only known once the movement consumes the moving average at submit), and
status/posting_state are literal casts.
Fields§
§id: Uuid§delivery_number: &'a str§branch_id: Option<Uuid>§customer_id: Uuid§source_so_id: Option<Uuid>§warehouse_id: Uuid§posting_date: NaiveDate§currency: &'a str§cogs_account_id: Uuid§inventory_account_id: UuidAuto Trait Implementations§
impl<'a> Freeze for NewDeliveryRow<'a>
impl<'a> RefUnwindSafe for NewDeliveryRow<'a>
impl<'a> Send for NewDeliveryRow<'a>
impl<'a> Sync for NewDeliveryRow<'a>
impl<'a> Unpin for NewDeliveryRow<'a>
impl<'a> UnsafeUnpin for NewDeliveryRow<'a>
impl<'a> UnwindSafe for NewDeliveryRow<'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