pub struct DeleteConsumerOffset {
pub consumer: Consumer,
pub stream_id: Identifier,
pub topic_id: Identifier,
pub partition_id: Option<u32>,
}Expand description
DeleteConsumerOffset command deletes the offset of a consumer from a given partition on the server.
It has additional payload:
consumer- the consumer that is deleting the offset, either the regular consumer or the consumer group.stream_id- unique stream ID (numeric or name).topic_id- unique topic ID (numeric or name).partition_id- partition ID on which the offset is stored. Has to be specified for the regular consumer. For consumer group it is ignored (useNone).
Fields§
§consumer: ConsumerThe consumer that is storing the offset, either the regular consumer or the consumer group.
stream_id: IdentifierUnique stream ID (numeric or name).
topic_id: IdentifierUnique topic ID (numeric or name).
partition_id: Option<u32>Partition ID on which the offset is stored. Has to be specified for the regular consumer. For consumer group it is ignored (use None).
Trait Implementations§
Source§impl BytesSerializable for DeleteConsumerOffset
impl BytesSerializable for DeleteConsumerOffset
Source§fn from_bytes(bytes: Bytes) -> Result<DeleteConsumerOffset, IggyError>
fn from_bytes(bytes: Bytes) -> Result<DeleteConsumerOffset, 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 Debug for DeleteConsumerOffset
impl Debug for DeleteConsumerOffset
Source§impl Default for DeleteConsumerOffset
impl Default for DeleteConsumerOffset
Source§impl<'de> Deserialize<'de> for DeleteConsumerOffset
impl<'de> Deserialize<'de> for DeleteConsumerOffset
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
Source§impl Display for DeleteConsumerOffset
impl Display for DeleteConsumerOffset
Source§impl PartialEq for DeleteConsumerOffset
impl PartialEq for DeleteConsumerOffset
Source§impl Serialize for DeleteConsumerOffset
impl Serialize for DeleteConsumerOffset
Source§impl Validatable<IggyError> for DeleteConsumerOffset
impl Validatable<IggyError> for DeleteConsumerOffset
impl StructuralPartialEq for DeleteConsumerOffset
Auto Trait Implementations§
impl Freeze for DeleteConsumerOffset
impl RefUnwindSafe for DeleteConsumerOffset
impl Send for DeleteConsumerOffset
impl Sync for DeleteConsumerOffset
impl Unpin for DeleteConsumerOffset
impl UnsafeUnpin for DeleteConsumerOffset
impl UnwindSafe for DeleteConsumerOffset
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