Struct krill::commons::eventsourcing::SentInitCommand
source · pub struct SentInitCommand<I: InitCommandDetails> { /* private fields */ }
Expand description
Convenience wrapper so that implementations can just implement [‘InitCommandDetails’] and leave the id and version boilerplate.
Implementations§
source§impl<I: InitCommandDetails> SentInitCommand<I>
impl<I: InitCommandDetails> SentInitCommand<I>
Trait Implementations§
source§impl<I: Clone + InitCommandDetails> Clone for SentInitCommand<I>
impl<I: Clone + InitCommandDetails> Clone for SentInitCommand<I>
source§fn clone(&self) -> SentInitCommand<I>
fn clone(&self) -> SentInitCommand<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I: Debug + InitCommandDetails> Debug for SentInitCommand<I>
impl<I: Debug + InitCommandDetails> Debug for SentInitCommand<I>
source§impl<I: InitCommandDetails> Display for SentInitCommand<I>
impl<I: InitCommandDetails> Display for SentInitCommand<I>
source§impl<I: InitCommandDetails> InitCommand for SentInitCommand<I>
impl<I: InitCommandDetails> InitCommand for SentInitCommand<I>
§type StorableDetails = <I as InitCommandDetails>::StorableDetails
type StorableDetails = <I as InitCommandDetails>::StorableDetails
Identify the type of storable component for this command. Commands
may contain short-lived things (e.g. an Arc) or even secrets
which should not be persisted.
source§fn handle(&self) -> &MyHandle
fn handle(&self) -> &MyHandle
Identifies the aggregate, useful when storing and retrieving the event.
source§fn actor(&self) -> &str
fn actor(&self) -> &str
The actor who sent the command. There is no default so as to avoid
accidentally attributing a command by a user instead as if it were an
internal command by Krill itself.
source§fn store(&self) -> Self::StorableDetails
fn store(&self) -> Self::StorableDetails
Get the storable information for this command
Auto Trait Implementations§
impl<I> RefUnwindSafe for SentInitCommand<I>where
I: RefUnwindSafe,
impl<I> Send for SentInitCommand<I>
impl<I> Sync for SentInitCommand<I>
impl<I> Unpin for SentInitCommand<I>where
I: Unpin,
impl<I> UnwindSafe for SentInitCommand<I>where
I: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write ) -> Result<(), Error>
Write text escaped for the given mode to
target
.