#[non_exhaustive]pub struct DescribedGroup {
pub error_code: i16,
pub error_message: Option<StrBytes>,
pub group_id: GroupId,
pub group_state: StrBytes,
pub group_epoch: i32,
pub assignment_epoch: i32,
pub assignor_name: StrBytes,
pub members: Vec<Member>,
pub authorized_operations: i32,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.error_code: i16
The describe error, or 0 if there was no error.
Supported API versions: 0
error_message: Option<StrBytes>
The top-level error message, or null if there was no error.
Supported API versions: 0
group_id: GroupId
The group ID string.
Supported API versions: 0
group_state: StrBytes
The group state string, or the empty string.
Supported API versions: 0
group_epoch: i32
The group epoch.
Supported API versions: 0
assignment_epoch: i32
The assignment epoch.
Supported API versions: 0
assignor_name: StrBytes
The selected assignor.
Supported API versions: 0
members: Vec<Member>
The members.
Supported API versions: 0
32-bit bitfield to represent authorized operations for this group.
Supported API versions: 0
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl DescribedGroup
impl DescribedGroup
Sourcepub fn with_error_code(self, value: i16) -> Self
pub fn with_error_code(self, value: i16) -> Self
Sets error_code
to the passed value.
The describe error, or 0 if there was no error.
Supported API versions: 0
Sourcepub fn with_error_message(self, value: Option<StrBytes>) -> Self
pub fn with_error_message(self, value: Option<StrBytes>) -> Self
Sets error_message
to the passed value.
The top-level error message, or null if there was no error.
Supported API versions: 0
Sourcepub fn with_group_id(self, value: GroupId) -> Self
pub fn with_group_id(self, value: GroupId) -> Self
Sets group_id
to the passed value.
The group ID string.
Supported API versions: 0
Sourcepub fn with_group_state(self, value: StrBytes) -> Self
pub fn with_group_state(self, value: StrBytes) -> Self
Sets group_state
to the passed value.
The group state string, or the empty string.
Supported API versions: 0
Sourcepub fn with_group_epoch(self, value: i32) -> Self
pub fn with_group_epoch(self, value: i32) -> Self
Sets group_epoch
to the passed value.
The group epoch.
Supported API versions: 0
Sourcepub fn with_assignment_epoch(self, value: i32) -> Self
pub fn with_assignment_epoch(self, value: i32) -> Self
Sets assignment_epoch
to the passed value.
The assignment epoch.
Supported API versions: 0
Sourcepub fn with_assignor_name(self, value: StrBytes) -> Self
pub fn with_assignor_name(self, value: StrBytes) -> Self
Sets assignor_name
to the passed value.
The selected assignor.
Supported API versions: 0
Sourcepub fn with_members(self, value: Vec<Member>) -> Self
pub fn with_members(self, value: Vec<Member>) -> Self
Sets members
to the passed value.
The members.
Supported API versions: 0
Sets authorized_operations
to the passed value.
32-bit bitfield to represent authorized operations for this group.
Supported API versions: 0
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for DescribedGroup
impl Clone for DescribedGroup
Source§fn clone(&self) -> DescribedGroup
fn clone(&self) -> DescribedGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DescribedGroup
impl Debug for DescribedGroup
Source§impl Decodable for DescribedGroup
Available on crate feature client
only.
impl Decodable for DescribedGroup
client
only.Source§impl Default for DescribedGroup
impl Default for DescribedGroup
Source§impl Encodable for DescribedGroup
Available on crate feature broker
only.
impl Encodable for DescribedGroup
broker
only.