Skip to main content

EntityUpdater

Trait EntityUpdater 

Source
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§

Source

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".

Implementors§