pub trait UpdateAndFetchResults<Changes, Output>: AsyncConnection {
    fn update_and_fetch<'life0, 'async_trait>(
        &'life0 mut self,
        changeset: Changes
    ) -> Pin<Box<dyn Future<Output = QueryResult<Output>> + Send + 'async_trait>>
    where
        Changes: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A trait defining how to update a record and fetch the updated entry on a certain backend.

The only case where it is required to work with this trait is while implementing a new connection type. Otherwise use SaveChangesDsl

For implementing this trait for a custom backend:

  • The Changes generic parameter represents the changeset that should be stored
  • The Output generic parameter represents the type of the response.

Required Methods

See the traits documentation.

Implementors