Trait PermissionApi
Source pub trait PermissionApi {
// Required methods
fn list_permissions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqPermission>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_permission<'life0, 'async_trait>(
&'life0 self,
vhost: String,
user: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqPermission, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_permission<'life0, 'async_trait>(
&'life0 self,
vhost: String,
user: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_topic_permissions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqTopicPermission>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_topic_permission<'life0, 'async_trait>(
&'life0 self,
vhost: String,
user: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqTopicPermission, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_topic_permission<'life0, 'async_trait>(
&'life0 self,
vhost: String,
user: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}