pub enum MessageBusCommand<T = AnyValue> {
EnsureTopic {
topic: String,
command_id: Option<String>,
},
CloseTopic {
topic: String,
command_id: Option<String>,
},
Publish {
topic: String,
payload: T,
key: Option<String>,
command_id: Option<String>,
idempotency_key: Option<String>,
},
TopicPolicy {
topic_policy: MessageBusTopicPolicy,
command_id: Option<String>,
},
Ack {
topic: String,
subscription_id: String,
seq: u64,
command_id: Option<String>,
},
Seek {
topic: String,
subscription_id: String,
next_seq: u64,
command_id: Option<String>,
},
CloseSubscription {
topic: String,
subscription_id: String,
command_id: Option<String>,
},
}Expand description
MessageBusCommand variants.
Variants§
EnsureTopic
EnsureTopic variant.
Fields
CloseTopic
CloseTopic variant.
Fields
Publish
Publish variant.
Fields
§
payload: Tpayload field for payload.
TopicPolicy
TopicPolicy variant.
Fields
§
topic_policy: MessageBusTopicPolicytopic_policy field for topic policy.
Ack
Ack variant.
Fields
Seek
Seek variant.
Fields
CloseSubscription
CloseSubscription variant.
Trait Implementations§
Source§impl<T: Clone> Clone for MessageBusCommand<T>
impl<T: Clone> Clone for MessageBusCommand<T>
Source§fn clone(&self) -> MessageBusCommand<T>
fn clone(&self) -> MessageBusCommand<T>
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<T: Debug> Debug for MessageBusCommand<T>
impl<T: Debug> Debug for MessageBusCommand<T>
Source§impl<T: PartialEq> PartialEq for MessageBusCommand<T>
impl<T: PartialEq> PartialEq for MessageBusCommand<T>
impl<T> StructuralPartialEq for MessageBusCommand<T>
Auto Trait Implementations§
impl<T> Freeze for MessageBusCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for MessageBusCommand<T>where
T: RefUnwindSafe,
impl<T> Send for MessageBusCommand<T>where
T: Send,
impl<T> Sync for MessageBusCommand<T>where
T: Sync,
impl<T> Unpin for MessageBusCommand<T>where
T: Unpin,
impl<T> UnsafeUnpin for MessageBusCommand<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MessageBusCommand<T>where
T: UnwindSafe,
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