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

pub struct StoredEvent<E: Display + Eq + PartialEq + Storable + 'static> { /* fields omitted */ }

Implementations

impl<E: Display + Eq + PartialEq + Storable + 'static> StoredEvent<E>[src]

pub fn new(id: &Handle, version: u64, event: E) -> Self[src]

pub fn details(&self) -> &E[src]

pub fn into_details(self) -> E[src]

pub fn unpack(self) -> (Handle, u64, E)[src]

Return the parts of this event.

Trait Implementations

impl<E: Clone + Display + Eq + PartialEq + Storable + 'static> Clone for StoredEvent<E>[src]

impl<E: Debug + Display + Eq + PartialEq + Storable + 'static> Debug for StoredEvent<E>[src]

impl<'de, E: Display + Eq + PartialEq + Storable + 'static> Deserialize<'de> for StoredEvent<E>[src]

impl<E: Display + Eq + PartialEq + Storable + 'static> Display for StoredEvent<E>[src]

impl<E: Eq + Display + PartialEq + Storable + 'static> Eq for StoredEvent<E>[src]

impl<E: Display + Eq + PartialEq + Storable + 'static> Event for StoredEvent<E>[src]

impl<E: PartialEq + Display + Eq + Storable + 'static> PartialEq<StoredEvent<E>> for StoredEvent<E>[src]

impl<E: Display + Eq + PartialEq + Storable + 'static> Serialize for StoredEvent<E> where
    E: Serialize
[src]

impl<E: Display + Eq + PartialEq + Storable + 'static> StructuralEq for StoredEvent<E>[src]

impl<E: Display + Eq + PartialEq + Storable + 'static> StructuralPartialEq for StoredEvent<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for StoredEvent<E> where
    E: RefUnwindSafe

impl<E> Send for StoredEvent<E> where
    E: Send

impl<E> Sync for StoredEvent<E> where
    E: Sync

impl<E> Unpin for StoredEvent<E> where
    E: Unpin

impl<E> UnwindSafe for StoredEvent<E> where
    E: 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> ToString for T where
    T: Display + ?Sized
[src]

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.