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