Skip to main content

ValueObject

Trait ValueObject 

Source
pub trait ValueObject:
    Clone
    + PartialEq
    + Debug
    + Send
    + Sync { }
Expand description

A domain object with no identity, whose equality is purely structural: two value objects are the same if their data is the same.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§