[][src]Trait cqrs::DeserializableEvent

pub trait DeserializableEvent: Event {
    type Error: CqrsError;
    fn deserialize_event_from_buffer(
        data: &[u8],
        event_type: &str
    ) -> Result<Option<Self>, Self::Error>; }

An event that can be deserialized from a buffer.

Associated Types

type Error: CqrsError

The error type.

Loading content...

Required methods

fn deserialize_event_from_buffer(
    data: &[u8],
    event_type: &str
) -> Result<Option<Self>, Self::Error>

Deserializes an event from the provided buffer, with prior knowledge about the event's type.

Loading content...

Implementors

Loading content...