pub trait ToRecord<B: BaseRequest>: Form + HasRecord {
// Required method
fn on_post<'life0, 'life1, 'async_trait>(
&'life0 mut self,
data: <Self as Form>::Data,
req: &'life1 mut B
) -> Pin<Box<dyn Future<Output = Result<Self::Item>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
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 { ... }
}