pub trait AuditedSaveExt {
type Entity;
// Required method
fn save<'a>(
self,
context: &'a UserContext,
) -> Pin<Box<dyn Future<Output = Result<Self::Entity, RuntimeError>> + Send + 'a>>;
}Expand description
Extension trait that provides the .save(&context) method on Audited<T>.
§Example
ⓘ
use teaql_runtime::AuditedSaveExt;
school.audit_as("创建学校").save(&context).await?;Required Associated Types§
Required Methods§
fn save<'a>( self, context: &'a UserContext, ) -> Pin<Box<dyn Future<Output = Result<Self::Entity, RuntimeError>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".