pub trait PartialUpdatable: PersistentEntity {
// Required method
fn apply_partial_update(
&mut self,
fields: &HashMap<String, Value>,
) -> Result<(), RepositoryError>;
}Expand description
Trait for entities that support partial updates via field map
Required Methods§
Sourcefn apply_partial_update(
&mut self,
fields: &HashMap<String, Value>,
) -> Result<(), RepositoryError>
fn apply_partial_update( &mut self, fields: &HashMap<String, Value>, ) -> Result<(), RepositoryError>
Apply partial updates from a field map
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".