Delete

Trait Delete 

Source
pub trait Delete<S: ContextTrait>: EntityBase<S> {
    type RequestExt: FromRequestParts<S> + Send + Sync + Clone;
    type Error: Into<AppError> + Serialize + Send + Sync + Unpin + 'static;

    // Required method
    fn delete(
        id: &<Self as EntityBase<S>>::Id,
        ext: Self::RequestExt,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send;
}

Required Associated Types§

Required Methods§

Source

fn delete( id: &<Self as EntityBase<S>>::Id, ext: Self::RequestExt, ) -> impl Future<Output = Result<(), 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.

Implementors§