#[non_exhaustive]pub struct OffsetFetchRequestGroup {
pub group_id: GroupId,
pub member_id: Option<StrBytes>,
pub member_epoch: i32,
pub topics: Option<Vec<OffsetFetchRequestTopics>>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-9
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: GroupIdThe group ID.
Supported API versions: 8-9
member_id: Option<StrBytes>The member ID assigned by the group coordinator if using the new consumer protocol (KIP-848).
Supported API versions: 9
member_epoch: i32The member epoch if using the new consumer protocol (KIP-848).
Supported API versions: 9
topics: Option<Vec<OffsetFetchRequestTopics>>Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.
Supported API versions: 8-9
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl OffsetFetchRequestGroup
impl OffsetFetchRequestGroup
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.
Supported API versions: 8-9
sourcepub fn with_member_id(self, value: Option<StrBytes>) -> Self
pub fn with_member_id(self, value: Option<StrBytes>) -> Self
Sets member_id to the passed value.
The member ID assigned by the group coordinator if using the new consumer protocol (KIP-848).
Supported API versions: 9
sourcepub fn with_member_epoch(self, value: i32) -> Self
pub fn with_member_epoch(self, value: i32) -> Self
Sets member_epoch to the passed value.
The member epoch if using the new consumer protocol (KIP-848).
Supported API versions: 9
sourcepub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopics>>) -> Self
pub fn with_topics(self, value: Option<Vec<OffsetFetchRequestTopics>>) -> Self
Sets topics to the passed value.
Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.
Supported API versions: 8-9
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 OffsetFetchRequestGroup
impl Clone for OffsetFetchRequestGroup
source§fn clone(&self) -> OffsetFetchRequestGroup
fn clone(&self) -> OffsetFetchRequestGroup
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OffsetFetchRequestGroup
impl Debug for OffsetFetchRequestGroup
source§impl Decodable for OffsetFetchRequestGroup
Available on crate feature broker only.
impl Decodable for OffsetFetchRequestGroup
broker only.source§impl Default for OffsetFetchRequestGroup
impl Default for OffsetFetchRequestGroup
source§impl Encodable for OffsetFetchRequestGroup
Available on crate feature client only.
impl Encodable for OffsetFetchRequestGroup
client only.source§impl Message for OffsetFetchRequestGroup
impl Message for OffsetFetchRequestGroup
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = _
const DEPRECATED_VERSIONS: Option<VersionRange> = _
source§impl PartialEq for OffsetFetchRequestGroup
impl PartialEq for OffsetFetchRequestGroup
impl StructuralPartialEq for OffsetFetchRequestGroup
Auto Trait Implementations§
impl !Freeze for OffsetFetchRequestGroup
impl RefUnwindSafe for OffsetFetchRequestGroup
impl Send for OffsetFetchRequestGroup
impl Sync for OffsetFetchRequestGroup
impl Unpin for OffsetFetchRequestGroup
impl UnwindSafe for OffsetFetchRequestGroup
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)