pub struct TopicInfo {
pub name: KafkaString,
pub partitions: i32,
pub replication_factor: i16,
pub topic_configs: Vec<KeyValue>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§name: KafkaStringThe name of the topic.
partitions: i32The number of partitions in the topic. Can be 0 if no specific number of partitions is enforced. Always 0 for changelog topics.
replication_factor: i16The replication factor of the topic. Can be 0 if the default replication factor should be used.
topic_configs: Vec<KeyValue>Topic-level configurations as key-value pairs.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl TopicInfo
impl TopicInfo
pub fn with_name(self, value: KafkaString) -> Self
pub fn with_partitions(self, value: i32) -> Self
pub fn with_replication_factor(self, value: i16) -> Self
pub fn with_topic_configs(self, value: Vec<KeyValue>) -> 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 TopicInfo
Auto Trait Implementations§
impl !Freeze for TopicInfo
impl RefUnwindSafe for TopicInfo
impl Send for TopicInfo
impl Sync for TopicInfo
impl Unpin for TopicInfo
impl UnsafeUnpin for TopicInfo
impl UnwindSafe for TopicInfo
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