Struct zeebe::PublishMessageBuilder
source · [−]pub struct PublishMessageBuilder { /* private fields */ }
Expand description
Configuration to publish a message.
Implementations
sourceimpl PublishMessageBuilder
impl PublishMessageBuilder
sourcepub fn with_correlation_key<T: Into<String>>(self, correlation_key: T) -> Self
pub fn with_correlation_key<T: Into<String>>(self, correlation_key: T) -> Self
Set the correlation key of the message.
sourcepub fn with_time_to_live(self, ttl: u64) -> Self
pub fn with_time_to_live(self, ttl: u64) -> Self
Set how long the message should be buffered on the broker, in milliseconds
sourcepub fn with_message_id<T: Into<String>>(self, message_id: T) -> Self
pub fn with_message_id<T: Into<String>>(self, message_id: T) -> Self
Set the unique ID of the message; can be omitted. only useful to ensure only one message with the given ID will ever be published (during its lifetime)
sourcepub fn with_variables<T: Into<Value>>(self, variables: T) -> Self
pub fn with_variables<T: Into<Value>>(self, variables: T) -> Self
Set the JSON document representing the variables in the message.
sourcepub async fn send(self) -> Result<PublishMessageResponse>
pub async fn send(self) -> Result<PublishMessageResponse>
Submit the publish message request.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PublishMessageBuilder
impl !Send for PublishMessageBuilder
impl !Sync for PublishMessageBuilder
impl Unpin for PublishMessageBuilder
impl !UnwindSafe for PublishMessageBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more