pub struct TopicData {
pub topic_id: KafkaUuid,
pub partitions: Vec<PartitionData>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§topic_id: KafkaUuidThe ID of the assigned topic.
partitions: Vec<PartitionData>The partitions assigned to the directory.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TopicData
impl TopicData
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§
impl StructuralPartialEq for TopicData
Auto Trait Implementations§
impl Freeze for TopicData
impl RefUnwindSafe for TopicData
impl Send for TopicData
impl Sync for TopicData
impl Unpin for TopicData
impl UnsafeUnpin for TopicData
impl UnwindSafe for TopicData
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