Trait AggregateId

Source
pub trait AggregateId:
    Eq
    + Hash
    + Clone
    + Send
    + Sync
    + ToString
    + Debug
    + Display
    + 'static {
    // Required method
    fn new() -> Self;
}
Expand description

Uniquely identifies an aggregate instance.

Required Methods§

Source

fn new() -> Self

Creates a new, unique aggregate ID.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AggregateId for Uuid

Source§

fn new() -> Self

Implementors§