pub trait WriterMutApi:
SqlExecutorMut
+ SqlGeneratorContainer
+ Extractor {
// Provided methods
async fn insert(&mut self, entity: &dyn Entity) -> Result<bool> { ... }
async fn upsert(&mut self, entity: &dyn Entity) -> Result<bool> { ... }
async fn update<M: Mutation>(
&mut self,
mutation: &M,
unique: &dyn Unique<Mutation = M>,
) -> Result<bool> { ... }
async fn change<M: Mutation>(
&mut self,
mutation: &M,
location: &M::Location,
) -> Result<u64> { ... }
async fn delete<M: Mutation>(
&mut self,
unique: &dyn Unique<Mutation = M>,
) -> Result<bool> { ... }
async fn purify(&mut self, location: &dyn Location) -> Result<u64> { ... }
}Provided Methods§
async fn insert(&mut self, entity: &dyn Entity) -> Result<bool>
async fn upsert(&mut self, entity: &dyn Entity) -> Result<bool>
async fn update<M: Mutation>( &mut self, mutation: &M, unique: &dyn Unique<Mutation = M>, ) -> Result<bool>
async fn change<M: Mutation>( &mut self, mutation: &M, location: &M::Location, ) -> Result<u64>
async fn delete<M: Mutation>( &mut self, unique: &dyn Unique<Mutation = M>, ) -> Result<bool>
async fn purify(&mut self, location: &dyn Location) -> Result<u64>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.