pub struct Send { /* private fields */ }Expand description
A command step: the aggregate it goes to, its data, the paths for rejections, and the next
step. Send::aggregate("case.order_id").rejected("out_of_stock", "notify").next("done").
Implementations§
Source§impl Send
impl Send
Sourcepub fn aggregate(reference: &str) -> Send
pub fn aggregate(reference: &str) -> Send
The command’s aggregate ID: a reference to the case’s data (case.order_id).
Sourcepub fn data<K: AsRef<str>, V: Into<Source>>(
self,
fields: impl IntoIterator<Item = (K, V)>,
) -> Send
pub fn data<K: AsRef<str>, V: Into<Source>>( self, fields: impl IntoIterator<Item = (K, V)>, ) -> Send
The command’s data: field → reference (case.<field>) or value.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Send
impl Freeze for Sendwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, Source)>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for Send
impl RefUnwindSafe for Send
impl Send for Send
impl Sync for Send
impl Unpin for Send
impl UnsafeUnpin for Sendwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Source)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Send
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request