Skip to main content

UpdateEntity

Trait UpdateEntity 

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

Source

fn update_entity(self, entity: &T) -> Result<Cow<'_, T>, EntityError>

Updates the entity with new fields.

Implementors§