made-core 0.3.0

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
use async_trait::async_trait;

use crate::error::DomainError;
use crate::value_objects::OutboxMessage;

/// Delivers a serialized message after it leaves the outbox store.
#[async_trait]
pub trait OutboxTransportPort: Send + Sync {
    async fn deliver(&self, message: &OutboxMessage) -> Result<(), DomainError>;
}