pub struct LeaderAndIsrLiveLeaderBuilder { /* private fields */ }
Expand description
Builder for LeaderAndIsrLiveLeader
.
Implementations§
source§impl LeaderAndIsrLiveLeaderBuilder
impl LeaderAndIsrLiveLeaderBuilder
sourcepub fn broker_id(&mut self, value: BrokerId) -> &mut Self
pub fn broker_id(&mut self, value: BrokerId) -> &mut Self
The leader’s broker ID.
Supported API versions: 0-7
sourcepub fn host_name(&mut self, value: StrBytes) -> &mut Self
pub fn host_name(&mut self, value: StrBytes) -> &mut Self
The leader’s hostname.
Supported API versions: 0-7
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<LeaderAndIsrLiveLeader, LeaderAndIsrLiveLeaderBuilderError>
pub fn build( &self ) -> Result<LeaderAndIsrLiveLeader, LeaderAndIsrLiveLeaderBuilderError>
Trait Implementations§
source§impl Clone for LeaderAndIsrLiveLeaderBuilder
impl Clone for LeaderAndIsrLiveLeaderBuilder
source§fn clone(&self) -> LeaderAndIsrLiveLeaderBuilder
fn clone(&self) -> LeaderAndIsrLiveLeaderBuilder
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 LeaderAndIsrLiveLeaderBuilder
impl Send for LeaderAndIsrLiveLeaderBuilder
impl Sync for LeaderAndIsrLiveLeaderBuilder
impl Unpin for LeaderAndIsrLiveLeaderBuilder
impl UnwindSafe for LeaderAndIsrLiveLeaderBuilder
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