Skip to main content

create

Function create 

Source
pub fn create() -> AggregatorBuilder
Expand description

Creates a new aggregate with an auto-generated ULID.

§Example

let id = create()
    .event(&AccountOpened { ... })
    .commit(&executor)
    .await?;