pub trait EntityUpdater<E, DTO>: Send + Sync {
// Required method
fn apply(&self, entity: E, dto: DTO) -> UseCaseResult<E>;
}Expand description
Applies update fields from an Update DTO to an existing entity.
Required Methods§
fn apply(&self, entity: E, dto: DTO) -> UseCaseResult<E>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".