Trait eventsourced::EvtExt

source ·
pub trait EvtExt: Sized {
    fn with_tag<T>(self, tag: T) -> TaggedEvt<Self>
    where
        T: Into<String>
; }
Expand description

Provide with_tag extension method for events. Together with its blanket implementation for any event allows for calling with_tag on any event.

Required Methods§

source

fn with_tag<T>(self, tag: T) -> TaggedEvt<Self>where
    T: Into<String>,

Create a TaggedEvt with the given tag.

Implementors§

source§

impl<E> EvtExt for E