openzeppelin_relayer::repositoriesTrait 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;
}