pub struct ListConsumerGroupOffsetsSpec { /* private fields */ }Expand description
Specification of consumer group offsets to list using
Admin::list_consumer_group_offsets_with_group_specs.
Corresponds to org.apache.kafka.clients.admin.ListConsumerGroupOffsetsSpec.
topic_partitions == None includes all topic partitions of the group.
Implementations§
Source§impl ListConsumerGroupOffsetsSpec
impl ListConsumerGroupOffsetsSpec
Sourcepub fn set_topic_partitions(
self,
topic_partitions: Option<Vec<TopicPartition>>,
) -> Self
pub fn set_topic_partitions( self, topic_partitions: Option<Vec<TopicPartition>>, ) -> Self
Set the topic partitions whose offsets are to be listed for a consumer
group. None includes all topic partitions.
Mirrors topicPartitions(Collection<TopicPartition>).
Sourcepub fn topic_partitions(&self) -> Option<&[TopicPartition]>
pub fn topic_partitions(&self) -> Option<&[TopicPartition]>
Returns the topic partitions whose offsets are to be listed for a
consumer group. None indicates that offsets of all partitions of the
group are to be listed.
Mirrors topicPartitions().
Trait Implementations§
Source§impl Clone for ListConsumerGroupOffsetsSpec
impl Clone for ListConsumerGroupOffsetsSpec
Source§fn clone(&self) -> ListConsumerGroupOffsetsSpec
fn clone(&self) -> ListConsumerGroupOffsetsSpec
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 ListConsumerGroupOffsetsSpec
impl Debug for ListConsumerGroupOffsetsSpec
Source§impl Default for ListConsumerGroupOffsetsSpec
impl Default for ListConsumerGroupOffsetsSpec
Source§fn default() -> ListConsumerGroupOffsetsSpec
fn default() -> ListConsumerGroupOffsetsSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListConsumerGroupOffsetsSpec
impl PartialEq for ListConsumerGroupOffsetsSpec
Source§fn eq(&self, other: &ListConsumerGroupOffsetsSpec) -> bool
fn eq(&self, other: &ListConsumerGroupOffsetsSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ListConsumerGroupOffsetsSpec
impl StructuralPartialEq for ListConsumerGroupOffsetsSpec
Auto Trait Implementations§
impl Freeze for ListConsumerGroupOffsetsSpec
impl RefUnwindSafe for ListConsumerGroupOffsetsSpec
impl Send for ListConsumerGroupOffsetsSpec
impl Sync for ListConsumerGroupOffsetsSpec
impl Unpin for ListConsumerGroupOffsetsSpec
impl UnsafeUnpin for ListConsumerGroupOffsetsSpec
impl UnwindSafe for ListConsumerGroupOffsetsSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more