pub trait CollectionIdentity {
    const COLLECTION: &'static str;

    // Required method
    fn save<'life0, 'life1, 'async_trait>(
        &'life0 self,
        db: &'life1 Database
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Constants§

source

const COLLECTION: &'static str

Required Methods§

source

fn save<'life0, 'life1, 'async_trait>( &'life0 self, db: &'life1 Database ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§