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 list_by_signer_id<'life0, 'life1, 'async_trait>(
&'life0 self,
signer_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<RelayerRepoModel>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_by_notification_id<'life0, 'life1, 'async_trait>(
&'life0 self,
notification_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<RelayerRepoModel>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn partial_update<'life0, 'async_trait>(
&'life0 self,
id: String,
update: UpdateRelayerRequest,
) -> 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;
}