pub struct OffsetCommitResponseTopicBuilder { /* private fields */ }
Expand description
Builder for OffsetCommitResponseTopic
.
Implementations§
source§impl OffsetCommitResponseTopicBuilder
impl OffsetCommitResponseTopicBuilder
sourcepub fn name(&mut self, value: TopicName) -> &mut Self
pub fn name(&mut self, value: TopicName) -> &mut Self
The topic name.
Supported API versions: 0-9
sourcepub fn partitions(
&mut self,
value: Vec<OffsetCommitResponsePartition>,
) -> &mut Self
pub fn partitions( &mut self, value: Vec<OffsetCommitResponsePartition>, ) -> &mut Self
The responses for each partition in the topic.
Supported API versions: 0-9
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>,
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes>, ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self,
) -> Result<OffsetCommitResponseTopic, OffsetCommitResponseTopicBuilderError>
pub fn build( &self, ) -> Result<OffsetCommitResponseTopic, OffsetCommitResponseTopicBuilderError>
Trait Implementations§
source§impl Clone for OffsetCommitResponseTopicBuilder
impl Clone for OffsetCommitResponseTopicBuilder
source§fn clone(&self) -> OffsetCommitResponseTopicBuilder
fn clone(&self) -> OffsetCommitResponseTopicBuilder
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 !Freeze for OffsetCommitResponseTopicBuilder
impl RefUnwindSafe for OffsetCommitResponseTopicBuilder
impl Send for OffsetCommitResponseTopicBuilder
impl Sync for OffsetCommitResponseTopicBuilder
impl Unpin for OffsetCommitResponseTopicBuilder
impl UnwindSafe for OffsetCommitResponseTopicBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)