pub struct NewCashMovementRow<'a> {
pub id: Uuid,
pub pos_profile_id: Uuid,
pub opening_entry_id: Uuid,
pub cashier_party_id: Uuid,
pub movement_type: &'a str,
pub amount: Decimal,
pub reason: Option<&'a str>,
pub moved_at: NaiveDateTime,
}Expand description
The exact row a non-sale drawer movement writes. Mirrors the raw column shape rather than the
PosCashMovement entity: movement_type binds as &str with a DB-side cast
($6::pos_cash_movement_type), so an unknown kind fails as a DB error, not a deserialize panic.
Fields§
§id: Uuid§pos_profile_id: Uuid§opening_entry_id: Uuid§cashier_party_id: Uuid§movement_type: &'a str§amount: Decimal§reason: Option<&'a str>§moved_at: NaiveDateTimeAuto Trait Implementations§
impl<'a> Freeze for NewCashMovementRow<'a>
impl<'a> RefUnwindSafe for NewCashMovementRow<'a>
impl<'a> Send for NewCashMovementRow<'a>
impl<'a> Sync for NewCashMovementRow<'a>
impl<'a> Unpin for NewCashMovementRow<'a>
impl<'a> UnsafeUnpin for NewCashMovementRow<'a>
impl<'a> UnwindSafe for NewCashMovementRow<'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