Trait anansi_core::forms::ToEdit

source ·
pub trait ToEdit<B: BaseRequest + GetRecord>: Form + GetData<B>where
    <Self as HasRecord>::Item: FromParams,{
    // Required method
    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::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 as Form>::Data: Send,
             Self: Sized + Send + 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

source

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::Item>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

source

fn on_get<'life0, 'async_trait>( req: &'life0 B ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where <Self as Form>::Data: Send, Self: Sized + Send + 'async_trait, 'life0: 'async_trait,

Implementors§