cqrs-core 0.2.2

Core types and traits for cqrs
Documentation
//! # cqrs-core
//!
//! `cqrs-core` defines the core types for the CQRS aggregate system

#![warn(unused_import_braces, unused_imports, unused_qualifications)]
#![deny(
    missing_debug_implementations,
    missing_copy_implementations,
    trivial_casts,
    trivial_numeric_casts,
    unsafe_code,
    unused_must_use
)]
#![warn(missing_docs)]

#[cfg(test)]
extern crate void;

mod aggregate;
pub mod reactor;
mod store;
mod types;

#[doc(inline)]
pub use crate::aggregate::{
    Aggregate, AggregateCommand, AggregateEvent, AggregateId, CommandError, DeserializableEvent,
    Event, Events, ProducedEvent, ProducedEvents, SerializableEvent,
};
#[doc(inline)]
pub use crate::store::{
    AlwaysSnapshot, EventSink, EventSource, NeverSnapshot, SnapshotSink, SnapshotSource,
    SnapshotStrategy,
};
#[doc(inline)]
pub use crate::types::{
    Before, BorrowedRawEvent, CqrsError, EventNumber, Precondition, RawEvent, Since,
    SnapshotRecommendation, Version, VersionedAggregate, VersionedEvent,
    VersionedEventWithMetadata,
};