pub trait UpdateEntity<T: Clone> {
// Required method
fn update_entity(self, entity: &T) -> Result<Cow<'_, T>, EntityError>;
}Expand description
Trait for updating entity fields.
Required Methods§
Sourcefn update_entity(self, entity: &T) -> Result<Cow<'_, T>, EntityError>
fn update_entity(self, entity: &T) -> Result<Cow<'_, T>, EntityError>
Updates the entity with new fields.