pub struct MetadataResponsePartition {
pub error_code: ErrorCode,
pub partition_index: i32,
pub leader_id: i32,
pub leader_epoch: i32,
pub replica_nodes: Vec<i32>,
pub isr_nodes: Vec<i32>,
pub offline_replicas: Vec<i32>,
}
Fields§
§error_code: ErrorCode
The partition error, or 0 if there was no error.
partition_index: i32
The partition index.
leader_id: i32
The ID of the leader broker.
leader_epoch: i32
The leader epoch of this partition.
replica_nodes: Vec<i32>
The set of all nodes that host this partition.
isr_nodes: Vec<i32>
The set of nodes that are in sync with the leader for this partition.
offline_replicas: Vec<i32>
The set of offline replicas of this partition.
Trait Implementations§
Source§impl Debug for MetadataResponsePartition
impl Debug for MetadataResponsePartition
Source§impl Decoder for MetadataResponsePartition
impl Decoder for MetadataResponsePartition
Source§impl Default for MetadataResponsePartition
impl Default for MetadataResponsePartition
Source§impl<'de> Deserialize<'de> for MetadataResponsePartition
impl<'de> Deserialize<'de> for MetadataResponsePartition
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 Encoder for MetadataResponsePartition
impl Encoder for MetadataResponsePartition
Auto Trait Implementations§
impl Freeze for MetadataResponsePartition
impl RefUnwindSafe for MetadataResponsePartition
impl Send for MetadataResponsePartition
impl Sync for MetadataResponsePartition
impl Unpin for MetadataResponsePartition
impl UnwindSafe for MetadataResponsePartition
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