pub struct DescribedGroup {
pub error_code: i16,
pub error_message: Option<String>,
pub group_id: String,
pub group_state: String,
pub protocol_type: String,
pub protocol_data: String,
pub members: Vec<DescribedGroupMember>,
pub authorized_operations: i32,
}Expand description
One described group in DescribeGroups (api 15).
ErrorCode sits here, not at the top of the response body.
error_message is v6+ (nullable). authorized_operations is v3+.
Fields§
§error_code: i16Kafka error code (0 is success).
error_message: Option<String>Broker error message, when present.
group_id: StringKafka group.id.
group_state: StringGroup state name from the broker.
protocol_type: StringGroup protocol type (for example consumer).
protocol_data: StringClassic group protocol data.
members: Vec<DescribedGroupMember>Group members.
Bitfield of authorized operations, or AUTHORIZED_OPERATIONS_OMITTED.
Implementations§
Source§impl DescribedGroup
impl DescribedGroup
Sourcepub fn new(group_id: impl Into<String>, error_code: i16) -> Self
pub fn new(group_id: impl Into<String>, error_code: i16) -> Self
Construct Self.
Java DescribeGroupsResponse.groupError fills
DescribeGroupsResponse::UNKNOWN_STATE /
DescribeGroupsResponse::UNKNOWN_PROTOCOL_TYPE /
DescribeGroupsResponse::UNKNOWN_PROTOCOL /
DescribeGroupsResponse::AUTHORIZED_OPERATIONS_OMITTED.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Kafka error code (0 is success).
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Broker error message, when present.
Sourcepub fn group_state(&self) -> &str
pub fn group_state(&self) -> &str
Group state name from the broker.
Sourcepub fn protocol_type(&self) -> &str
pub fn protocol_type(&self) -> &str
Group protocol type (for example consumer).
Sourcepub fn protocol_data(&self) -> &str
pub fn protocol_data(&self) -> &str
Java ConsumerGroupDescription.partitionAssignor (classic ProtocolData).
Sourcepub fn members(&self) -> &[DescribedGroupMember]
pub fn members(&self) -> &[DescribedGroupMember]
Java ConsumerGroupDescription.members.
Bitfield of authorized operations, or AUTHORIZED_OPERATIONS_OMITTED.
Sourcepub fn is_simple_consumer_group(&self) -> bool
pub fn is_simple_consumer_group(&self) -> bool
Java ConsumerGroupDescription.isSimpleConsumerGroup (empty protocol type).
Trait Implementations§
Source§impl Clone for DescribedGroup
impl Clone for DescribedGroup
Source§fn clone(&self) -> DescribedGroup
fn clone(&self) -> DescribedGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more