INNER CODE UNIT · Rust

init

thalo-rs/thalo · crates/thalo/src/lib.rs:108

    fn init(id: String) -> Self;
}

/// Handles a command, returning events.
///
/// Commands use the aggregates state to validate business rules, and returns
/// events which are later used to update the aggregate state.
///
/// # Example
///
/// ```
/// use thalo::{events, Handle};
///
/// pub struct Increment {
///     pub amount: u64,
/// }
///
/// impl Handle<Increment> for Counter {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…