#[non_exhaustive]pub struct SyncGroupRequest {
pub group_id: GroupId,
pub generation_id: i32,
pub member_id: StrBytes,
pub group_instance_id: Option<StrBytes>,
pub protocol_type: Option<StrBytes>,
pub protocol_name: Option<StrBytes>,
pub assignments: Vec<SyncGroupRequestAssignment>,
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.group_id: GroupId
The unique group identifier.
Supported API versions: 0-5
generation_id: i32
The generation of the group.
Supported API versions: 0-5
member_id: StrBytes
The member ID assigned by the group.
Supported API versions: 0-5
group_instance_id: Option<StrBytes>
The unique identifier of the consumer instance provided by end user.
Supported API versions: 3-5
protocol_type: Option<StrBytes>
The group protocol type.
Supported API versions: 5
protocol_name: Option<StrBytes>
The group protocol name.
Supported API versions: 5
assignments: Vec<SyncGroupRequestAssignment>
Each assignment.
Supported API versions: 0-5
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl SyncGroupRequest
impl SyncGroupRequest
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 unique group identifier.
Supported API versions: 0-5
Sourcepub fn with_generation_id(self, value: i32) -> Self
pub fn with_generation_id(self, value: i32) -> Self
Sets generation_id
to the passed value.
The generation of the group.
Supported API versions: 0-5
Sourcepub fn with_member_id(self, value: StrBytes) -> Self
pub fn with_member_id(self, value: StrBytes) -> Self
Sets member_id
to the passed value.
The member ID assigned by the group.
Supported API versions: 0-5
Sourcepub fn with_group_instance_id(self, value: Option<StrBytes>) -> Self
pub fn with_group_instance_id(self, value: Option<StrBytes>) -> Self
Sets group_instance_id
to the passed value.
The unique identifier of the consumer instance provided by end user.
Supported API versions: 3-5
Sourcepub fn with_protocol_type(self, value: Option<StrBytes>) -> Self
pub fn with_protocol_type(self, value: Option<StrBytes>) -> Self
Sets protocol_type
to the passed value.
The group protocol type.
Supported API versions: 5
Sourcepub fn with_protocol_name(self, value: Option<StrBytes>) -> Self
pub fn with_protocol_name(self, value: Option<StrBytes>) -> Self
Sets protocol_name
to the passed value.
The group protocol name.
Supported API versions: 5
Sourcepub fn with_assignments(self, value: Vec<SyncGroupRequestAssignment>) -> Self
pub fn with_assignments(self, value: Vec<SyncGroupRequestAssignment>) -> Self
Sets assignments
to the passed value.
Each assignment.
Supported API versions: 0-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 SyncGroupRequest
impl Clone for SyncGroupRequest
Source§fn clone(&self) -> SyncGroupRequest
fn clone(&self) -> SyncGroupRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SyncGroupRequest
impl Debug for SyncGroupRequest
Source§impl Decodable for SyncGroupRequest
Available on crate feature broker
only.
impl Decodable for SyncGroupRequest
broker
only.Source§impl Default for SyncGroupRequest
impl Default for SyncGroupRequest
Source§impl Encodable for SyncGroupRequest
Available on crate feature client
only.
impl Encodable for SyncGroupRequest
client
only.Source§impl From<SyncGroupRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<SyncGroupRequest> for RequestKind
messages_enums
only.Source§fn from(value: SyncGroupRequest) -> RequestKind
fn from(value: SyncGroupRequest) -> RequestKind
Source§impl HeaderVersion for SyncGroupRequest
impl HeaderVersion for SyncGroupRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for SyncGroupRequest
impl Message for SyncGroupRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for SyncGroupRequest
impl PartialEq for SyncGroupRequest
Source§impl Request for SyncGroupRequest
Available on crate features client
and broker
only.
impl Request for SyncGroupRequest
client
and broker
only.