pub struct ListedGroup {
pub group_id: String,
pub protocol_type: String,
pub group_state: String,
pub group_type: String,
}Expand description
One listed group in ListGroups (api 16).
Java GroupListing. There is no per-group ErrorCode. The response
error sits at the top of the body (after throttle on v1+).
group_state is v4+; group_type is v5+.
std::fmt::Display is Java GroupListing.toString. Empty group_type /
group_state (pre-v5 / pre-v4) print none.
Fields§
§group_id: StringKafka group.id.
protocol_type: StringGroup protocol type (for example consumer).
group_state: StringGroup state name from the broker.
group_type: StringGroup type (classic, consumer, share, …).
Implementations§
Source§impl ListedGroup
impl ListedGroup
Sourcepub fn group_type(&self) -> GroupType
pub fn group_type(&self) -> GroupType
Java ListedGroup.groupType as GroupType.
Sourcepub fn group_state(&self) -> GroupState
pub fn group_state(&self) -> GroupState
Java GroupListing.groupState as GroupState.
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Java GroupListing.isSimpleConsumerGroup (CLASSIC type and empty protocol).
Trait Implementations§
Source§impl Clone for ListedGroup
impl Clone for ListedGroup
Source§fn clone(&self) -> ListedGroup
fn clone(&self) -> ListedGroup
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§impl Debug for ListedGroup
impl Debug for ListedGroup
Source§impl Display for ListedGroup
impl Display for ListedGroup
impl Eq for ListedGroup
Source§impl PartialEq for ListedGroup
impl PartialEq for ListedGroup
impl StructuralPartialEq for ListedGroup
Auto Trait Implementations§
impl Freeze for ListedGroup
impl RefUnwindSafe for ListedGroup
impl Send for ListedGroup
impl Sync for ListedGroup
impl Unpin for ListedGroup
impl UnsafeUnpin for ListedGroup
impl UnwindSafe for ListedGroup
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