pub struct TransferProjected {
pub transfer_id: Value,
pub company_id: Value,
pub state: Value,
pub previous_state: Value,
}Expand description
a transfer’s projected state changes (T1 recompute)
Declared in stock.hook.yaml; staged by hand code.
Fields§
§transfer_id: Value§company_id: Value§state: Value§previous_state: ValueTrait Implementations§
Source§impl Clone for TransferProjected
impl Clone for TransferProjected
Source§impl Debug for TransferProjected
impl Debug for TransferProjected
Source§impl DeclaredEvent for TransferProjected
impl DeclaredEvent for TransferProjected
Source§const NAME: &'static str = "TransferProjected"
const NAME: &'static str = "TransferProjected"
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 TransferProjected
impl<'de> Deserialize<'de> for TransferProjected
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
Source§impl PartialEq for TransferProjected
impl PartialEq for TransferProjected
Source§impl Serialize for TransferProjected
impl Serialize for TransferProjected
impl StructuralPartialEq for TransferProjected
Auto Trait Implementations§
impl Freeze for TransferProjected
impl RefUnwindSafe for TransferProjected
impl Send for TransferProjected
impl Sync for TransferProjected
impl Unpin for TransferProjected
impl UnsafeUnpin for TransferProjected
impl UnwindSafe for TransferProjected
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