Struct konsumer_offsets::TopicPartitions
source · pub struct TopicPartitions {
pub topic: String,
pub partitions: Vec<i32>,
}
Expand description
Represents a collection of partitions belonging to a specific topic.
Fields§
§topic: String
Topic name.
partitions: Vec<i32>
Partitions that belong to the topic.
Depending on the context this struct is used, this could be the entire set
of partitions a TopicPartitions::topic
is made of, or a sub-set
(ex. partition assignment).
Trait Implementations§
source§impl Clone for TopicPartitions
impl Clone for TopicPartitions
source§fn clone(&self) -> TopicPartitions
fn clone(&self) -> TopicPartitions
Returns a copy 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 TopicPartitions
impl Debug for TopicPartitions
source§impl Default for TopicPartitions
impl Default for TopicPartitions
source§fn default() -> TopicPartitions
fn default() -> TopicPartitions
Returns the “default value” for a type. Read more
source§impl PartialEq for TopicPartitions
impl PartialEq for TopicPartitions
source§fn eq(&self, other: &TopicPartitions) -> bool
fn eq(&self, other: &TopicPartitions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TopicPartitions
impl StructuralPartialEq for TopicPartitions
Auto Trait Implementations§
impl Freeze for TopicPartitions
impl RefUnwindSafe for TopicPartitions
impl Send for TopicPartitions
impl Sync for TopicPartitions
impl Unpin for TopicPartitions
impl UnwindSafe for TopicPartitions
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