pub struct PartitionData {
pub partition_index: i32,
pub error_code: i16,
pub leader_id: i32,
pub leader_epoch: i32,
pub vote_granted: bool,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Expand description
PartitionData, version 1.
Fields§
§partition_index: i32The partition index.
error_code: i16The partition level error code.
leader_id: i32The ID of the current leader or -1 if the leader is unknown.
leader_epoch: i32The latest known leader epoch.
vote_granted: boolTrue if the vote was granted and false otherwise.
_unknown_tagged_fields: Vec<RawTaggedField>Unknown tagged fields.
Implementations§
Trait Implementations§
Source§impl Clone for PartitionData
impl Clone for PartitionData
Source§fn clone(&self) -> PartitionData
fn clone(&self) -> PartitionData
Returns a duplicate 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 PartitionData
impl Debug for PartitionData
Source§impl Default for PartitionData
impl Default for PartitionData
Source§impl<'de> Deserialize<'de> for PartitionData
impl<'de> Deserialize<'de> for PartitionData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PartitionData
impl PartialEq for PartitionData
Source§impl Readable for PartitionData
impl Readable for PartitionData
Source§impl Serialize for PartitionData
impl Serialize for PartitionData
Source§impl Writable for PartitionData
impl Writable for PartitionData
impl StructuralPartialEq for PartitionData
Auto Trait Implementations§
impl Freeze for PartitionData
impl RefUnwindSafe for PartitionData
impl Send for PartitionData
impl Sync for PartitionData
impl Unpin for PartitionData
impl UnwindSafe for PartitionData
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