#[non_exhaustive]pub struct OffsetCommitRequestTopic {
pub name: TopicName,
pub partitions: Vec<OffsetCommitRequestPartition>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-9
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: TopicName
The topic name.
Supported API versions: 0-9
partitions: Vec<OffsetCommitRequestPartition>
Each partition to commit offsets for.
Supported API versions: 0-9
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl OffsetCommitRequestTopic
impl OffsetCommitRequestTopic
Sourcepub fn with_name(self, value: TopicName) -> Self
pub fn with_name(self, value: TopicName) -> Self
Sets name
to the passed value.
The topic name.
Supported API versions: 0-9
Sourcepub fn with_partitions(self, value: Vec<OffsetCommitRequestPartition>) -> Self
pub fn with_partitions(self, value: Vec<OffsetCommitRequestPartition>) -> Self
Sets partitions
to the passed value.
Each partition to commit offsets for.
Supported API versions: 0-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 OffsetCommitRequestTopic
impl Clone for OffsetCommitRequestTopic
Source§fn clone(&self) -> OffsetCommitRequestTopic
fn clone(&self) -> OffsetCommitRequestTopic
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OffsetCommitRequestTopic
impl Debug for OffsetCommitRequestTopic
Source§impl Decodable for OffsetCommitRequestTopic
Available on crate feature broker
only.
impl Decodable for OffsetCommitRequestTopic
Available on crate feature
broker
only.Source§impl Default for OffsetCommitRequestTopic
impl Default for OffsetCommitRequestTopic
Source§impl Encodable for OffsetCommitRequestTopic
Available on crate feature client
only.
impl Encodable for OffsetCommitRequestTopic
Available on crate feature
client
only.Source§impl Message for OffsetCommitRequestTopic
impl Message for OffsetCommitRequestTopic
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange>
const DEPRECATED_VERSIONS: Option<VersionRange>
The deprecated versions for this message.
Source§impl PartialEq for OffsetCommitRequestTopic
impl PartialEq for OffsetCommitRequestTopic
impl StructuralPartialEq for OffsetCommitRequestTopic
Auto Trait Implementations§
impl !Freeze for OffsetCommitRequestTopic
impl RefUnwindSafe for OffsetCommitRequestTopic
impl Send for OffsetCommitRequestTopic
impl Sync for OffsetCommitRequestTopic
impl Unpin for OffsetCommitRequestTopic
impl UnwindSafe for OffsetCommitRequestTopic
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
Mutably borrows from an owned value. Read more