#[non_exhaustive]pub struct DescribedGroup {
pub error_code: i16,
pub group_id: GroupId,
pub group_state: StrBytes,
pub protocol_type: StrBytes,
pub protocol_data: StrBytes,
pub members: Vec<DescribedGroupMember>,
pub authorized_operations: i32,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-5
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-5
group_id: GroupId
The group ID string.
Supported API versions: 0-5
group_state: StrBytes
The group state string, or the empty string.
Supported API versions: 0-5
protocol_type: StrBytes
The group protocol type, or the empty string.
Supported API versions: 0-5
protocol_data: StrBytes
The group protocol data, or the empty string.
Supported API versions: 0-5
members: Vec<DescribedGroupMember>
The group members.
Supported API versions: 0-5
32-bit bitfield to represent authorized operations for this group.
Supported API versions: 3-5
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-5
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-5
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-5
Sourcepub fn with_protocol_type(self, value: StrBytes) -> Self
pub fn with_protocol_type(self, value: StrBytes) -> Self
Sets protocol_type
to the passed value.
The group protocol type, or the empty string.
Supported API versions: 0-5
Sourcepub fn with_protocol_data(self, value: StrBytes) -> Self
pub fn with_protocol_data(self, value: StrBytes) -> Self
Sets protocol_data
to the passed value.
The group protocol data, or the empty string.
Supported API versions: 0-5
Sourcepub fn with_members(self, value: Vec<DescribedGroupMember>) -> Self
pub fn with_members(self, value: Vec<DescribedGroupMember>) -> Self
Sets members
to the passed value.
The group members.
Supported API versions: 0-5
Sets authorized_operations
to the passed value.
32-bit bitfield to represent authorized operations for this group.
Supported API versions: 3-5
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.