[−][src]Struct krill::commons::eventsourcing::StoredCommand
A description of a command that was processed, and the events / or error that followed. Commands that turn out to be no-ops (no events, no errors) should not be stored.
Implementations
impl<S: WithStorableDetails> StoredCommand<S>
[src]
pub fn new(
actor: String,
time: Time,
handle: Handle,
version: u64,
sequence: u64,
details: S,
effect: StoredEffect
) -> Self
[src]
actor: String,
time: Time,
handle: Handle,
version: u64,
sequence: u64,
details: S,
effect: StoredEffect
) -> Self
pub fn time(&self) -> Time
[src]
pub fn handle(&self) -> &Handle
[src]
pub fn sequence(&self) -> u64
[src]
pub fn details(&self) -> &S
[src]
pub fn effect(&self) -> &StoredEffect
[src]
Trait Implementations
impl<S: Clone + WithStorableDetails> Clone for StoredCommand<S>
[src]
fn clone(&self) -> StoredCommand<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Debug + WithStorableDetails> Debug for StoredCommand<S>
[src]
impl<'de, S: WithStorableDetails> Deserialize<'de> for StoredCommand<S>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S: Eq + WithStorableDetails> Eq for StoredCommand<S>
[src]
impl<S: WithStorableDetails> Into<CommandHistoryRecord> for StoredCommand<S>
[src]
fn into(self) -> CommandHistoryRecord
[src]
impl<S: PartialEq + WithStorableDetails> PartialEq<StoredCommand<S>> for StoredCommand<S>
[src]
fn eq(&self, other: &StoredCommand<S>) -> bool
[src]
fn ne(&self, other: &StoredCommand<S>) -> bool
[src]
impl<S: WithStorableDetails> Serialize for StoredCommand<S> where
S: Serialize,
[src]
S: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<S: WithStorableDetails> StructuralEq for StoredCommand<S>
[src]
impl<S: WithStorableDetails> StructuralPartialEq for StoredCommand<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for StoredCommand<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for StoredCommand<S> where
S: Send,
S: Send,
impl<S> Sync for StoredCommand<S> where
S: Sync,
S: Sync,
impl<S> Unpin for StoredCommand<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for StoredCommand<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,