pub trait ToDestroy<B: BaseRequest + GetRecord>: Form + HasRecordwhere
<Self as HasRecord>::Item: FromParams,{
// Provided methods
fn on_get<'life0, 'async_trait>(
_req: &'life0 B
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Sized + Send + 'async_trait,
'life0: 'async_trait { ... }
fn on_post<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_data: <Self as Form>::Data,
req: &'life1 B
) -> Pin<Box<dyn Future<Output = Result<<Self as HasRecord>::Item>> + Send + 'async_trait>>
where <Self as Form>::Data: Send + Sync,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}