Skip to main content

AggregateExt

Trait AggregateExt 

Source
pub trait AggregateExt<E: Executor> {
    // Required methods
    fn has_event<A: AggregateEvent>(
        &self,
        id: impl Into<String>,
    ) -> impl Future<Output = Result<bool>> + Send;
    fn original_version<A: AggregateEvent>(
        &self,
        id: impl Into<String>,
    ) -> impl Future<Output = Result<Option<u16>>> + Send;
}

Required Methods§

Source

fn has_event<A: AggregateEvent>( &self, id: impl Into<String>, ) -> impl Future<Output = Result<bool>> + Send

Source

fn original_version<A: AggregateEvent>( &self, id: impl Into<String>, ) -> impl Future<Output = Result<Option<u16>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E: Executor> AggregateExt<E> for E