pub struct TopicProduceResponse {
pub name: KafkaString,
pub topic_id: KafkaUuid,
pub partition_responses: Vec<PartitionProduceResponse>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe topic name.
topic_id: KafkaUuidThe unique topic ID
partition_responses: Vec<PartitionProduceResponse>Each partition that we produced to within the topic.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TopicProduceResponse
impl TopicProduceResponse
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_topic_id(self, value: KafkaUuid) -> Self
pub fn with_partition_responses( self, value: Vec<PartitionProduceResponse>, ) -> 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 TopicProduceResponse
impl Clone for TopicProduceResponse
Source§fn clone(&self) -> TopicProduceResponse
fn clone(&self) -> TopicProduceResponse
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 TopicProduceResponse
impl Debug for TopicProduceResponse
Source§impl Default for TopicProduceResponse
impl Default for TopicProduceResponse
Source§impl PartialEq for TopicProduceResponse
impl PartialEq for TopicProduceResponse
Source§fn eq(&self, other: &TopicProduceResponse) -> bool
fn eq(&self, other: &TopicProduceResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TopicProduceResponse
Auto Trait Implementations§
impl !Freeze for TopicProduceResponse
impl RefUnwindSafe for TopicProduceResponse
impl Send for TopicProduceResponse
impl Sync for TopicProduceResponse
impl Unpin for TopicProduceResponse
impl UnsafeUnpin for TopicProduceResponse
impl UnwindSafe for TopicProduceResponse
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