pub struct RabbitMqClient {
pub api_url: String,
pub client: ClientWithMiddleware,
}
Fields§
§api_url: String
§client: ClientWithMiddleware
Trait Implementations§
Source§impl BindingApi for RabbitMqClient
impl BindingApi for RabbitMqClient
fn list_bindings<'life0, 'async_trait>(
&'life0 self,
vhost: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqBinding>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn filter_bindings<'life0, 'async_trait>(
&'life0 self,
vhost: String,
source: String,
destination: String,
destination_type: RabbitMqBindingDestinationType,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqBinding>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_binding<'life0, 'async_trait>(
&'life0 self,
vhost: String,
source: String,
destination: String,
destination_type: RabbitMqBindingDestinationType,
properties_key: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqBinding, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_binding<'life0, 'async_trait>(
&'life0 self,
vhost: String,
source: String,
destination: String,
destination_type: RabbitMqBindingDestinationType,
request: RabbitMqBindingRequest,
) -> Pin<Box<dyn Future<Output = Result<String, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_binding<'life0, 'async_trait>(
&'life0 self,
vhost: String,
source: String,
destination: String,
destination_type: RabbitMqBindingDestinationType,
properties_key: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Clone for RabbitMqClient
impl Clone for RabbitMqClient
Source§fn clone(&self) -> RabbitMqClient
fn clone(&self) -> RabbitMqClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ExchangeApi for RabbitMqClient
impl ExchangeApi for RabbitMqClient
fn list_exchanges<'life0, 'async_trait>(
&'life0 self,
vhost: Option<String>,
options: Option<RabbitMqRequestOptions>,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqPaginatedResponse<RabbitMqExchange>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_exchange<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqExchange, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_exchange<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
request: RabbitMqExchangeRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_exchange<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
request: RabbitMqExchangeRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_exchange<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_source_bindings<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqBinding>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_destination_bindings<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqBinding>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl MessageApi for RabbitMqClient
impl MessageApi for RabbitMqClient
fn publish_message<'life0, 'async_trait>(
&'life0 self,
vhost: String,
exchange: String,
request: RabbitMqPublishMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqPublishMessageResponse, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_messages<'life0, 'async_trait>(
&'life0 self,
vhost: String,
queue: String,
options: RabbitMqGetMessagesOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqMessage>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl NodeApi for RabbitMqClient
impl NodeApi for RabbitMqClient
fn list_nodes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqNode>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_node<'life0, 'async_trait>(
&'life0 self,
node: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqNode, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_node_memory<'life0, 'async_trait>(
&'life0 self,
node: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqNodeMemory, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl OverviewApi for RabbitMqClient
impl OverviewApi for RabbitMqClient
fn get_overview<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqOverview, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cluster_name<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqClusterName, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_cluster_name<'life0, 'async_trait>(
&'life0 self,
request: RabbitMqClusterName,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl PermissionApi for RabbitMqClient
impl PermissionApi for RabbitMqClient
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,
Source§impl PolicyApi for RabbitMqClient
impl PolicyApi for RabbitMqClient
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,
Source§impl QueueApi for RabbitMqClient
impl QueueApi for RabbitMqClient
fn list_queues<'life0, 'async_trait>(
&'life0 self,
vhost: Option<String>,
options: Option<RabbitMqRequestOptions>,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqPaginatedResponse<RabbitMqQueue>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_queue<'life0, 'async_trait>(
&'life0 self,
vhost: String,
name: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqQueue, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_queue_bindings<'life0, 'async_trait>(
&'life0 self,
vhost: String,
name: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqBinding>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_queue<'life0, 'async_trait>(
&'life0 self,
vhost: String,
queue: String,
request: RabbitMqQueueRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_queue<'life0, 'async_trait>(
&'life0 self,
vhost: String,
queue: String,
request: RabbitMqQueueRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_queue<'life0, 'async_trait>(
&'life0 self,
vhost: String,
name: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn purge_queue<'life0, 'async_trait>(
&'life0 self,
vhost: String,
name: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_queue_actions<'life0, 'async_trait>(
&'life0 self,
vhost: String,
queue: String,
action: RabbitMqQueueAction,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl UserApi for RabbitMqClient
impl UserApi for RabbitMqClient
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,
Source§impl VhostApi for RabbitMqClient
impl VhostApi for RabbitMqClient
fn list_vhosts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqVhost>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_vhost<'life0, 'async_trait>(
&'life0 self,
vhost: String,
) -> Pin<Box<dyn Future<Output = Result<RabbitMqVhost, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_vhost<'life0, 'async_trait>(
&'life0 self,
request: RabbitMqVhostRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_vhost<'life0, 'async_trait>(
&'life0 self,
request: RabbitMqVhostRequest,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_vhost<'life0, 'async_trait>(
&'life0 self,
vhost: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_vhost_on_node<'life0, 'async_trait>(
&'life0 self,
vhost: String,
node: String,
) -> Pin<Box<dyn Future<Output = Result<(), RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_vhost_permissions<'life0, 'async_trait>(
&'life0 self,
vhost: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqPermission>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_vhost_topic_permissions<'life0, 'async_trait>(
&'life0 self,
vhost: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<RabbitMqTopicPermission>, RabbitMqClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RabbitMqClient
impl !RefUnwindSafe for RabbitMqClient
impl Send for RabbitMqClient
impl Sync for RabbitMqClient
impl Unpin for RabbitMqClient
impl !UnwindSafe for RabbitMqClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more