pub struct MemberDescription { /* private fields */ }Expand description
A detailed description of a single group member in the cluster.
Corresponds to org.apache.kafka.clients.admin.MemberDescription.
Note: Java’s four @Deprecated(forRemoval = true) convenience constructors
(which only supply default values already expressible through new) are
omitted; the full-field new constructor is the sole entry point and no
in-scope caller or test uses the deprecated overloads.
Implementations§
Source§impl MemberDescription
impl MemberDescription
Sourcepub fn new(
member_id: impl Into<String>,
group_instance_id: Option<String>,
rack_id: Option<String>,
client_id: impl Into<String>,
host: impl Into<String>,
assignment: MemberAssignment,
target_assignment: Option<MemberAssignment>,
member_epoch: Option<i32>,
upgraded: Option<bool>,
) -> Self
pub fn new( member_id: impl Into<String>, group_instance_id: Option<String>, rack_id: Option<String>, client_id: impl Into<String>, host: impl Into<String>, assignment: MemberAssignment, target_assignment: Option<MemberAssignment>, member_epoch: Option<i32>, upgraded: Option<bool>, ) -> Self
Creates a member description with all fields.
Mirrors the primary
MemberDescription(String, Optional, Optional, String, String, MemberAssignment, Optional, Optional, Optional) constructor. null
member id / client id / host are normalized to empty strings, matching
Java.
Sourcepub fn consumer_id(&self) -> &str
pub fn consumer_id(&self) -> &str
The consumer id of the group member. Mirrors consumerId().
Sourcepub fn group_instance_id(&self) -> Option<&str>
pub fn group_instance_id(&self) -> Option<&str>
The instance id of the group member. Mirrors groupInstanceId().
Sourcepub fn assignment(&self) -> &MemberAssignment
pub fn assignment(&self) -> &MemberAssignment
The assignment of the group member. Mirrors assignment().
Sourcepub fn target_assignment(&self) -> Option<&MemberAssignment>
pub fn target_assignment(&self) -> Option<&MemberAssignment>
The target assignment of the member (consumer groups only). Mirrors
targetAssignment().
Sourcepub fn member_epoch(&self) -> Option<i32>
pub fn member_epoch(&self) -> Option<i32>
The epoch of the group member. Mirrors memberEpoch().
Trait Implementations§
Source§impl Clone for MemberDescription
impl Clone for MemberDescription
Source§fn clone(&self) -> MemberDescription
fn clone(&self) -> MemberDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemberDescription
impl Debug for MemberDescription
Source§impl Display for MemberDescription
impl Display for MemberDescription
Source§impl PartialEq for MemberDescription
impl PartialEq for MemberDescription
impl Eq for MemberDescription
impl StructuralPartialEq for MemberDescription
Auto Trait Implementations§
impl Freeze for MemberDescription
impl RefUnwindSafe for MemberDescription
impl Send for MemberDescription
impl Sync for MemberDescription
impl Unpin for MemberDescription
impl UnsafeUnpin for MemberDescription
impl UnwindSafe for MemberDescription
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
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
§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
key and return true if they are equal.