pub struct MoveDone {
pub move_id: Value,
pub company_id: Value,
pub item_id: Value,
pub quantity: Value,
pub price_unit: Value,
pub is_inventory: Value,
}Expand description
a stock move hits done (quants flipped, SLE minted)
Declared in stock.hook.yaml; staged by hand code.
Fields§
§move_id: Value§company_id: Value§item_id: Value§quantity: Value§price_unit: Value§is_inventory: ValueTrait Implementations§
Source§impl DeclaredEvent for MoveDone
impl DeclaredEvent for MoveDone
Source§const NAME: &'static str = "MoveDone"
const NAME: &'static str = "MoveDone"
The event type name the outbox row carries (
TicketOpened).Source§const AGGREGATE: &'static str = ""
const AGGREGATE: &'static str = ""
The aggregate the event belongs to (
Ticket), or "" when the declaration names none.Source§fn record(&self, aggregate_id: &str, ctx: &WriteCtx) -> OutboxRecord
fn record(&self, aggregate_id: &str, ctx: &WriteCtx) -> OutboxRecord
The outbox row of this event for aggregate
aggregate_id, under the company of ctx
(or the nil uuid when the request has none). A fresh event id, now as the time it
occurred, the declared version, and the payload serialized as written.Source§fn record_for(
&self,
aggregate_id: &str,
company_id: Uuid,
ctx: &WriteCtx,
) -> OutboxRecord
fn record_for( &self, aggregate_id: &str, company_id: Uuid, ctx: &WriteCtx, ) -> OutboxRecord
record for an aggregate that carries its own company.Source§impl<'de> Deserialize<'de> for MoveDone
impl<'de> Deserialize<'de> for MoveDone
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MoveDone
Auto Trait Implementations§
impl Freeze for MoveDone
impl RefUnwindSafe for MoveDone
impl Send for MoveDone
impl Sync for MoveDone
impl Unpin for MoveDone
impl UnsafeUnpin for MoveDone
impl UnwindSafe for MoveDone
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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