Trait UserApi
Source pub trait UserApi {
// Required methods
fn who_am_i<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqWhoAmI, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_users<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqUser>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_user<'life0, 'async_trait>(
&'life0 self,
name: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqUser, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: RabbitMqUserCreateRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_user<'life0, 'async_trait>(
&'life0 self,
name: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_users_without_permissions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqUser>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn bulk_delete_users<'life0, 'async_trait>(
&'life0 self,
users: RabbitMqUsersBulkDeleteRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_user_permissions<'life0, 'async_trait>(
&'life0 self,
user: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqPermission>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_user_topic_permissions<'life0, 'async_trait>(
&'life0 self,
user: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqTopicPermission>, RabbitMqClientError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}