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
11
12
13
//! [`CeremonyStepHandlerPort`] — executes one ceremony step.

use async_trait::async_trait;

use crate::error::DomainError;
use crate::ports::CeremonyStepHandlerRequest;
use crate::value_objects::StepResult;

#[async_trait]
pub trait CeremonyStepHandlerPort: Send + Sync {
    async fn execute(&self, request: CeremonyStepHandlerRequest)
        -> Result<StepResult, DomainError>;
}