#[non_exhaustive]pub struct ConsumerTopicMetadata {
pub partitions: HashMap<i32, ConsumerPartitionMetadata>,
/* private fields */
}Expand description
Metadata for a consumer group corresponding to a specific topic.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.partitions: HashMap<i32, ConsumerPartitionMetadata>Optional. Metadata for this consumer group and topic for all partition indexes it has metadata for.
Implementations§
Source§impl ConsumerTopicMetadata
impl ConsumerTopicMetadata
pub fn new() -> Self
Sourcepub fn set_partitions<T, K, V>(self, v: T) -> Self
pub fn set_partitions<T, K, V>(self, v: T) -> Self
Sets the value of partitions.
Trait Implementations§
Source§impl Clone for ConsumerTopicMetadata
impl Clone for ConsumerTopicMetadata
Source§fn clone(&self) -> ConsumerTopicMetadata
fn clone(&self) -> ConsumerTopicMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumerTopicMetadata
impl Debug for ConsumerTopicMetadata
Source§impl Default for ConsumerTopicMetadata
impl Default for ConsumerTopicMetadata
Source§fn default() -> ConsumerTopicMetadata
fn default() -> ConsumerTopicMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ConsumerTopicMetadata
impl Message for ConsumerTopicMetadata
Source§impl PartialEq for ConsumerTopicMetadata
impl PartialEq for ConsumerTopicMetadata
impl StructuralPartialEq for ConsumerTopicMetadata
Auto Trait Implementations§
impl Freeze for ConsumerTopicMetadata
impl RefUnwindSafe for ConsumerTopicMetadata
impl Send for ConsumerTopicMetadata
impl Sync for ConsumerTopicMetadata
impl Unpin for ConsumerTopicMetadata
impl UnwindSafe for ConsumerTopicMetadata
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