pub trait Update<S: ContextTrait>: EntityBase<S> {
type RequestExt: FromRequestParts<S> + Send + Sync + Clone;
type Error: Into<AppError> + Serialize + Send;
// Required method
fn update(
id: &<Self as EntityBase<S>>::Id,
data: <Self as EntityBase<S>>::Update,
ext: Self::RequestExt,
) -> impl Future<Output = Result<Self, Self::Error>> + Send;
}
Required Associated Types§
type RequestExt: FromRequestParts<S> + Send + Sync + Clone
type Error: Into<AppError> + Serialize + Send
Required Methods§
fn update( id: &<Self as EntityBase<S>>::Id, data: <Self as EntityBase<S>>::Update, ext: Self::RequestExt, ) -> impl Future<Output = Result<Self, Self::Error>> + Send
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.