#[non_exhaustive]pub struct PublishBindings {
pub channel: Bindings,
pub operation: Bindings,
pub message: Bindings,
}Expand description
What one publish position contributes to the document, one set per level.
Assembled by the runtime at mount time from the PublishPolicy bound
on the mount chain - a reply, an Out slot, the publisher a dead-lettered
delivery leaves through - and carried in the registration’s metadata until the document is
built.
A reply has no send operation of its own (it is the reply of the operation it answers, and
the specification gives that object no bindings), so on a reply the operation set is dropped
and the channel and message sets apply.
§Examples
use ruststream::asyncapi::PublishBindings;
let bindings = PublishBindings::default();
assert!(bindings.channel.is_empty());
assert!(bindings.operation.is_empty());
assert!(bindings.message.is_empty());Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel: BindingsWhat the policy says about the channel it publishes to.
operation: BindingsWhat it says about the send operation.
message: BindingsWhat it says about the messages that leave through it.
Trait Implementations§
Source§impl Clone for PublishBindings
impl Clone for PublishBindings
Source§impl Debug for PublishBindings
impl Debug for PublishBindings
Source§impl Default for PublishBindings
impl Default for PublishBindings
impl Eq for PublishBindings
Source§impl PartialEq for PublishBindings
impl PartialEq for PublishBindings
impl StructuralPartialEq for PublishBindings
Auto Trait Implementations§
impl Freeze for PublishBindings
impl RefUnwindSafe for PublishBindings
impl Send for PublishBindings
impl Sync for PublishBindings
impl Unpin for PublishBindings
impl UnsafeUnpin for PublishBindings
impl UnwindSafe for PublishBindings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request