openzeppelin_relayer::repositories

Trait RelayerRepository

Source
pub trait RelayerRepository:
    Repository<RelayerRepoModel, String>
    + Send
    + Sync {
    // Required methods
    fn list_active<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RelayerRepoModel>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn partial_update<'life0, 'async_trait>(
        &'life0 self,
        id: String,
        update: RelayerUpdateRequest,
    ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn enable_relayer<'life0, 'async_trait>(
        &'life0 self,
        relayer_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn disable_relayer<'life0, 'async_trait>(
        &'life0 self,
        relayer_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_policy<'life0, 'async_trait>(
        &'life0 self,
        id: String,
        policy: RelayerNetworkPolicy,
    ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_active<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<RelayerRepoModel>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn partial_update<'life0, 'async_trait>( &'life0 self, id: String, update: RelayerUpdateRequest, ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn enable_relayer<'life0, 'async_trait>( &'life0 self, relayer_id: String, ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn disable_relayer<'life0, 'async_trait>( &'life0 self, relayer_id: String, ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_policy<'life0, 'async_trait>( &'life0 self, id: String, policy: RelayerNetworkPolicy, ) -> Pin<Box<dyn Future<Output = Result<RelayerRepoModel, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§