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