Struct rabbitmq_stream_protocol::commands::metadata::StreamMetadata
source · [−]pub struct StreamMetadata {
pub stream_name: String,
pub code: ResponseCode,
pub leader_reference: u16,
pub replicas_references: Vec<u16>,
}
Fields
stream_name: String
code: ResponseCode
leader_reference: u16
replicas_references: Vec<u16>
Trait Implementations
sourceimpl Debug for StreamMetadata
impl Debug for StreamMetadata
sourceimpl Decoder for StreamMetadata
impl Decoder for StreamMetadata
sourceimpl Encoder for StreamMetadata
impl Encoder for StreamMetadata
fn encoded_size(&self) -> u32
fn encode(&self, writer: &mut impl Write) -> Result<(), EncodeError>
sourceimpl PartialEq<StreamMetadata> for StreamMetadata
impl PartialEq<StreamMetadata> for StreamMetadata
sourcefn eq(&self, other: &StreamMetadata) -> bool
fn eq(&self, other: &StreamMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StreamMetadata) -> bool
fn ne(&self, other: &StreamMetadata) -> bool
This method tests for !=
.
impl StructuralPartialEq for StreamMetadata
Auto Trait Implementations
impl RefUnwindSafe for StreamMetadata
impl Send for StreamMetadata
impl Sync for StreamMetadata
impl Unpin for StreamMetadata
impl UnwindSafe for StreamMetadata
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