pub struct ShareGroupAssignment {
pub topic_partitions: Vec<ShareGroupTopicPartitions>,
}Expand description
Current assignment for one described share-group member.
std::fmt::Display is Java ShareMemberAssignment.toString (comma-no-space
topic-partition list).
Fields§
§topic_partitions: Vec<ShareGroupTopicPartitions>Assigned topic partitions.
Implementations§
Sourcepub fn new(topic_partitions: Vec<ShareGroupTopicPartitions>) -> Self
pub fn new(topic_partitions: Vec<ShareGroupTopicPartitions>) -> Self
Construct Self.
Sourcepub fn topic_partitions(&self) -> &[ShareGroupTopicPartitions]
pub fn topic_partitions(&self) -> &[ShareGroupTopicPartitions]
Java ShareMemberAssignment.topicPartitions.
Trait Implementations§
Source§fn clone(&self) -> ShareGroupAssignment
fn clone(&self) -> ShareGroupAssignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> ShareGroupAssignment
fn default() -> ShareGroupAssignment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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