pub struct FetchTopic {
pub topic_id: KafkaUuid,
pub partitions: Vec<FetchPartition>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topic_id: KafkaUuidThe unique topic ID.
partitions: Vec<FetchPartition>The partitions to fetch.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl FetchTopic
impl FetchTopic
pub fn with_topic_id(self, value: KafkaUuid) -> Self
pub fn with_partitions(self, value: Vec<FetchPartition>) -> 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 FetchTopic
impl Clone for FetchTopic
Source§fn clone(&self) -> FetchTopic
fn clone(&self) -> FetchTopic
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 FetchTopic
impl Debug for FetchTopic
Source§impl Default for FetchTopic
impl Default for FetchTopic
Source§impl PartialEq for FetchTopic
impl PartialEq for FetchTopic
Source§fn eq(&self, other: &FetchTopic) -> bool
fn eq(&self, other: &FetchTopic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchTopic
Auto Trait Implementations§
impl Freeze for FetchTopic
impl RefUnwindSafe for FetchTopic
impl Send for FetchTopic
impl Sync for FetchTopic
impl Unpin for FetchTopic
impl UnsafeUnpin for FetchTopic
impl UnwindSafe for FetchTopic
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