pub struct GetTopic {
pub stream_id: Identifier,
pub topic_id: Identifier,
}Expand description
GetTopic command is used to retrieve a topic from a stream.
It has additional payload:
stream_id- unique stream ID (numeric or name).topic_id- unique topic ID (numeric or name).
Fields§
§stream_id: IdentifierUnique stream ID (numeric or name).
topic_id: IdentifierUnique topic ID (numeric or name).
Trait Implementations§
Source§impl BytesSerializable for GetTopic
impl BytesSerializable for GetTopic
Source§fn from_bytes(bytes: Bytes) -> Result<GetTopic, IggyError>
fn from_bytes(bytes: Bytes) -> Result<GetTopic, IggyError>
Deserializes the struct from bytes.
Source§fn write_to_buffer(&self, _buf: &mut BytesMut)
fn write_to_buffer(&self, _buf: &mut BytesMut)
Write the struct to a buffer.
Source§fn get_buffer_size(&self) -> usize
fn get_buffer_size(&self) -> usize
Get the byte-size of the struct.
Source§impl<'de> Deserialize<'de> for GetTopic
impl<'de> Deserialize<'de> for GetTopic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for GetTopic
Auto Trait Implementations§
impl Freeze for GetTopic
impl RefUnwindSafe for GetTopic
impl Send for GetTopic
impl Sync for GetTopic
impl Unpin for GetTopic
impl UnsafeUnpin for GetTopic
impl UnwindSafe for GetTopic
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
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 more