Struct rabbitmq_stream_protocol::commands::publish::PublishCommand
source · pub struct PublishCommand { /* private fields */ }
Implementations§
source§impl PublishCommand
impl PublishCommand
pub fn new(publisher_id: u8, published_messages: Vec<PublishedMessage>) -> Self
Trait Implementations§
source§impl Debug for PublishCommand
impl Debug for PublishCommand
source§impl Decoder for PublishCommand
impl Decoder for PublishCommand
source§impl Encoder for PublishCommand
impl Encoder for PublishCommand
source§impl From<PublishCommand> for RequestKind
impl From<PublishCommand> for RequestKind
source§fn from(cmd: PublishCommand) -> Self
fn from(cmd: PublishCommand) -> Self
Converts to this type from the input type.
source§impl PartialEq for PublishCommand
impl PartialEq for PublishCommand
source§fn eq(&self, other: &PublishCommand) -> bool
fn eq(&self, other: &PublishCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PublishCommand
impl StructuralEq for PublishCommand
impl StructuralPartialEq for PublishCommand
Auto Trait Implementations§
impl RefUnwindSafe for PublishCommand
impl Send for PublishCommand
impl Sync for PublishCommand
impl Unpin for PublishCommand
impl UnwindSafe for PublishCommand
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