Trait PolicyApi
Source pub trait PolicyApi {
// Required methods
fn list_policies<'life0, 'async_trait>(
&'life0 self,
vhost: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqPolicy>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_policy<'life0, 'async_trait>(
&'life0 self,
vhost: String,
policy: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqPolicy, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_policy<'life0, 'async_trait>(
&'life0 self,
vhost: String,
policy: String,
request: RabbitMqPolicyRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_policy<'life0, 'async_trait>(
&'life0 self,
vhost: String,
policy: String,
request: RabbitMqPolicyRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_policy<'life0, 'async_trait>(
&'life0 self,
vhost: String,
policy: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}