Struct kafka_protocol::messages::consumer_protocol_assignment::ConsumerProtocolAssignmentBuilder
source · pub struct ConsumerProtocolAssignmentBuilder { /* private fields */ }
Expand description
Builder for ConsumerProtocolAssignment
.
Implementations§
source§impl ConsumerProtocolAssignmentBuilder
impl ConsumerProtocolAssignmentBuilder
sourcepub fn assigned_partitions(
&mut self,
value: IndexMap<TopicName, TopicPartition>
) -> &mut Self
pub fn assigned_partitions( &mut self, value: IndexMap<TopicName, TopicPartition> ) -> &mut Self
Supported API versions: 0-3
sourcepub fn build(
&self
) -> Result<ConsumerProtocolAssignment, ConsumerProtocolAssignmentBuilderError>
pub fn build( &self ) -> Result<ConsumerProtocolAssignment, ConsumerProtocolAssignmentBuilderError>
Trait Implementations§
source§impl Clone for ConsumerProtocolAssignmentBuilder
impl Clone for ConsumerProtocolAssignmentBuilder
source§fn clone(&self) -> ConsumerProtocolAssignmentBuilder
fn clone(&self) -> ConsumerProtocolAssignmentBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConsumerProtocolAssignmentBuilder
impl Send for ConsumerProtocolAssignmentBuilder
impl Sync for ConsumerProtocolAssignmentBuilder
impl Unpin for ConsumerProtocolAssignmentBuilder
impl UnwindSafe for ConsumerProtocolAssignmentBuilder
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