[][src]Struct krill::commons::eventsourcing::StoredCommand

pub struct StoredCommand<S: WithStorableDetails> { /* fields omitted */ }

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]

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]

impl<S: Debug + WithStorableDetails> Debug for StoredCommand<S>[src]

impl<'de, S: WithStorableDetails> Deserialize<'de> for StoredCommand<S>[src]

impl<S: Eq + WithStorableDetails> Eq for StoredCommand<S>[src]

impl<S: WithStorableDetails> Into<CommandHistoryRecord> for StoredCommand<S>[src]

impl<S: PartialEq + WithStorableDetails> PartialEq<StoredCommand<S>> for StoredCommand<S>[src]

impl<S: WithStorableDetails> Serialize for StoredCommand<S> where
    S: Serialize
[src]

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

impl<S> Send for StoredCommand<S> where
    S: Send

impl<S> Sync for StoredCommand<S> where
    S: Sync

impl<S> Unpin for StoredCommand<S> where
    S: Unpin

impl<S> UnwindSafe for StoredCommand<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.