pub struct TopicRequest {
pub name: KafkaString,
pub partition_indexes: Vec<i32>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe topic name.
partition_indexes: Vec<i32>The indexes of the partitions to list producers for.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TopicRequest
impl TopicRequest
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_partition_indexes(self, value: Vec<i32>) -> 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 TopicRequest
impl Clone for TopicRequest
Source§fn clone(&self) -> TopicRequest
fn clone(&self) -> TopicRequest
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 TopicRequest
impl Debug for TopicRequest
Source§impl Default for TopicRequest
impl Default for TopicRequest
Source§impl PartialEq for TopicRequest
impl PartialEq for TopicRequest
Source§fn eq(&self, other: &TopicRequest) -> bool
fn eq(&self, other: &TopicRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TopicRequest
Auto Trait Implementations§
impl !Freeze for TopicRequest
impl RefUnwindSafe for TopicRequest
impl Send for TopicRequest
impl Sync for TopicRequest
impl Unpin for TopicRequest
impl UnsafeUnpin for TopicRequest
impl UnwindSafe for TopicRequest
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