#[non_exhaustive]pub struct ConsumerProtocolAssignment {
pub assigned_partitions: Vec<TopicPartition>,
pub user_data: Option<Bytes>,
}
Expand description
Valid versions: 0-3
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.assigned_partitions: Vec<TopicPartition>
Supported API versions: 0-3
user_data: Option<Bytes>
Supported API versions: 0-3
Implementations§
Source§impl ConsumerProtocolAssignment
impl ConsumerProtocolAssignment
Sourcepub fn with_assigned_partitions(self, value: Vec<TopicPartition>) -> Self
pub fn with_assigned_partitions(self, value: Vec<TopicPartition>) -> Self
Sets assigned_partitions
to the passed value.
Supported API versions: 0-3
Sourcepub fn with_user_data(self, value: Option<Bytes>) -> Self
pub fn with_user_data(self, value: Option<Bytes>) -> Self
Sets user_data
to the passed value.
Supported API versions: 0-3
Trait Implementations§
Source§impl Clone for ConsumerProtocolAssignment
impl Clone for ConsumerProtocolAssignment
Source§fn clone(&self) -> ConsumerProtocolAssignment
fn clone(&self) -> ConsumerProtocolAssignment
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 ConsumerProtocolAssignment
impl Debug for ConsumerProtocolAssignment
Source§impl Default for ConsumerProtocolAssignment
impl Default for ConsumerProtocolAssignment
Source§impl Message for ConsumerProtocolAssignment
impl Message for ConsumerProtocolAssignment
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
impl StructuralPartialEq for ConsumerProtocolAssignment
Auto Trait Implementations§
impl !Freeze for ConsumerProtocolAssignment
impl RefUnwindSafe for ConsumerProtocolAssignment
impl Send for ConsumerProtocolAssignment
impl Sync for ConsumerProtocolAssignment
impl Unpin for ConsumerProtocolAssignment
impl UnwindSafe for ConsumerProtocolAssignment
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