puerto-core 0.16.0

Puerto runtime — the domain types every Puerto project shares: paged lists, the repository error, domain events and the ports their transports implement.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Puerto's runtime core: the domain types every project generated by
//! [Puerto](https://github.com/Guuri11/Puerto) shares, whatever its entities and adapters — paged
//! lists, the repository error, and domain events with the ports their transports implement.
//!
//! No driver, no runtime, no I/O: a project's domain layer depends on it (ADR-0017, ADR-0018).

pub mod events;
pub mod pagination;
pub mod repository_error;

pub use events::{DecodeError, DomainEvent, EventEnvelope, EventHandler, HandlerOutcome};
pub use pagination::{DEFAULT_PAGE_LIMIT, MAX_PAGE_LIMIT, Page, PageRequest};
pub use repository_error::RepositoryError;