ddd-toolkit-core 0.2.2

Traits and reference implementations for Domain-Driven Design building blocks: entities, value objects, aggregates, repositories, and event dispatch.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Test doubles for the [`crate::port`] traits: fixed/in-memory
//! implementations useful in tests, or as a starting point for a real
//! adapter.

/// A [`crate::port::clock::Clock`] that always returns a configured time.
#[cfg(feature = "chrono")]
pub mod clock;
/// An [`crate::port::id::IdGenerator`] that always returns a fixed id.
pub mod id;
/// A `Load`/`Save`/`Delete` implementation backed by an in-memory `HashMap`.
pub mod repository;