IntoDomain

Trait IntoDomain 

Source
pub trait IntoDomain<D>: Versioned {
    // Required method
    fn into_domain(self) -> D;
}
Expand description

Converts a versioned DTO into the application’s domain model.

This trait should be implemented on the latest version of a DTO to convert it into the clean, version-agnostic domain model.

Required Methods§

Source

fn into_domain(self) -> D

Converts this versioned data into the domain model.

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.

Implementors§