pub trait TransactionWithQuery<T> {
type Output;
// Required method
fn execute_and_return(&self, data: &mut T) -> Self::Output;
}
Expand description
This trait is similar to the Transaction. But, it also returns a value. All the same rules of the Transaction trait must be true to a TrascationWithQuery.
A blanket implementations is done for the Transaction trait for everyone that implements TransactionWithQuery.