Struct RabbitMqClient

Source
pub struct RabbitMqClient {
    pub api_url: String,
    pub client: ClientWithMiddleware,
}

Fields§

§api_url: String§client: ClientWithMiddleware

Trait Implementations§

Source§

impl BindingApi for RabbitMqClient

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

fn clone(&self) -> RabbitMqClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ExchangeApi for RabbitMqClient

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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,

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,