pub struct ListOffsetsTopic {
pub name: KafkaString,
pub partitions: Vec<ListOffsetsPartition>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe topic name.
partitions: Vec<ListOffsetsPartition>Each partition in the request.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ListOffsetsTopic
impl ListOffsetsTopic
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_partitions(self, value: Vec<ListOffsetsPartition>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for ListOffsetsTopic
impl Clone for ListOffsetsTopic
Source§fn clone(&self) -> ListOffsetsTopic
fn clone(&self) -> ListOffsetsTopic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListOffsetsTopic
impl Debug for ListOffsetsTopic
Source§impl Default for ListOffsetsTopic
impl Default for ListOffsetsTopic
Source§impl PartialEq for ListOffsetsTopic
impl PartialEq for ListOffsetsTopic
Source§fn eq(&self, other: &ListOffsetsTopic) -> bool
fn eq(&self, other: &ListOffsetsTopic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListOffsetsTopic
Auto Trait Implementations§
impl !Freeze for ListOffsetsTopic
impl RefUnwindSafe for ListOffsetsTopic
impl Send for ListOffsetsTopic
impl Sync for ListOffsetsTopic
impl Unpin for ListOffsetsTopic
impl UnsafeUnpin for ListOffsetsTopic
impl UnwindSafe for ListOffsetsTopic
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