Trait mongo_data_exporter::Operation

source ·
pub trait Operation<'a> {
    // Required methods
    fn new<'life0, 'async_trait>(
        uri: &'life0 str,
        database: &'a str,
        collection: &'a str,
    ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn change_collection<'life0, 'async_trait>(
        &'life0 mut self,
        collection: &'a str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn insert_many<'life0, 'async_trait>(
        &'life0 self,
        document: Vec<Document>,
    ) -> Pin<Box<dyn Future<Output = InsertManyResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_last_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        last_id: &'life1 Option<ObjectId>,
    ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn new<'life0, 'async_trait>( uri: &'life0 str, database: &'a str, collection: &'a str, ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

source

fn change_collection<'life0, 'async_trait>( &'life0 mut self, collection: &'a str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

source

fn insert_many<'life0, 'async_trait>( &'life0 self, document: Vec<Document>, ) -> Pin<Box<dyn Future<Output = InsertManyResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn update_last_id<'life0, 'life1, 'async_trait>( &'life0 self, last_id: &'life1 Option<ObjectId>, ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§