pub struct FetchSnapshotRequestData {
pub cluster_id: Option<KafkaString>,
pub replica_id: i32,
pub max_bytes: i32,
pub topics: Vec<TopicSnapshot>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§cluster_id: Option<KafkaString>The clusterId if known, this is used to validate metadata fetches prior to broker registration.
replica_id: i32The broker ID of the follower.
max_bytes: i32The maximum bytes to fetch from all of the snapshots.
topics: Vec<TopicSnapshot>The topics to fetch.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl FetchSnapshotRequestData
impl FetchSnapshotRequestData
pub fn with_cluster_id(self, value: Option<KafkaString>) -> Self
pub fn with_replica_id(self, value: i32) -> Self
pub fn with_max_bytes(self, value: i32) -> Self
pub fn with_topics(self, value: Vec<TopicSnapshot>) -> Self
pub fn read(buf: &mut Bytes, version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, version: i16) -> Result<()>
pub fn encoded_len(&self, version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for FetchSnapshotRequestData
impl Clone for FetchSnapshotRequestData
Source§fn clone(&self) -> FetchSnapshotRequestData
fn clone(&self) -> FetchSnapshotRequestData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FetchSnapshotRequestData
impl Debug for FetchSnapshotRequestData
Source§impl Default for FetchSnapshotRequestData
impl Default for FetchSnapshotRequestData
Source§impl PartialEq for FetchSnapshotRequestData
impl PartialEq for FetchSnapshotRequestData
Source§fn eq(&self, other: &FetchSnapshotRequestData) -> bool
fn eq(&self, other: &FetchSnapshotRequestData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchSnapshotRequestData
Auto Trait Implementations§
impl !Freeze for FetchSnapshotRequestData
impl RefUnwindSafe for FetchSnapshotRequestData
impl Send for FetchSnapshotRequestData
impl Sync for FetchSnapshotRequestData
impl Unpin for FetchSnapshotRequestData
impl UnsafeUnpin for FetchSnapshotRequestData
impl UnwindSafe for FetchSnapshotRequestData
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