#[non_exhaustive]pub struct FetchSnapshotRequest {
pub cluster_id: Option<StrBytes>,
pub replica_id: BrokerId,
pub max_bytes: i32,
pub topics: Vec<TopicSnapshot>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}
Expand description
Valid versions: 0-1
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster_id: Option<StrBytes>
The clusterId if known, this is used to validate metadata fetches prior to broker registration
Supported API versions: 0-1
replica_id: BrokerId
The broker ID of the follower
Supported API versions: 0-1
max_bytes: i32
The maximum bytes to fetch from all of the snapshots
Supported API versions: 0-1
topics: Vec<TopicSnapshot>
The topics to fetch
Supported API versions: 0-1
unknown_tagged_fields: BTreeMap<i32, Bytes>
Other tagged fields
Implementations§
Source§impl FetchSnapshotRequest
impl FetchSnapshotRequest
Sourcepub fn with_cluster_id(self, value: Option<StrBytes>) -> Self
pub fn with_cluster_id(self, value: Option<StrBytes>) -> Self
Sets cluster_id
to the passed value.
The clusterId if known, this is used to validate metadata fetches prior to broker registration
Supported API versions: 0-1
Sourcepub fn with_replica_id(self, value: BrokerId) -> Self
pub fn with_replica_id(self, value: BrokerId) -> Self
Sets replica_id
to the passed value.
The broker ID of the follower
Supported API versions: 0-1
Sourcepub fn with_max_bytes(self, value: i32) -> Self
pub fn with_max_bytes(self, value: i32) -> Self
Sets max_bytes
to the passed value.
The maximum bytes to fetch from all of the snapshots
Supported API versions: 0-1
Sourcepub fn with_topics(self, value: Vec<TopicSnapshot>) -> Self
pub fn with_topics(self, value: Vec<TopicSnapshot>) -> Self
Sets topics
to the passed value.
The topics to fetch
Supported API versions: 0-1
Sourcepub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
pub fn with_unknown_tagged_fields(self, value: BTreeMap<i32, Bytes>) -> Self
Sets unknown_tagged_fields to the passed value.
Sourcepub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
pub fn with_unknown_tagged_field(self, key: i32, value: Bytes) -> Self
Inserts an entry into unknown_tagged_fields.
Trait Implementations§
Source§impl Clone for FetchSnapshotRequest
impl Clone for FetchSnapshotRequest
Source§fn clone(&self) -> FetchSnapshotRequest
fn clone(&self) -> FetchSnapshotRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FetchSnapshotRequest
impl Debug for FetchSnapshotRequest
Source§impl Decodable for FetchSnapshotRequest
Available on crate feature broker
only.
impl Decodable for FetchSnapshotRequest
broker
only.Source§impl Default for FetchSnapshotRequest
impl Default for FetchSnapshotRequest
Source§impl Encodable for FetchSnapshotRequest
Available on crate feature client
only.
impl Encodable for FetchSnapshotRequest
client
only.Source§impl From<FetchSnapshotRequest> for RequestKind
Available on crate feature messages_enums
only.
impl From<FetchSnapshotRequest> for RequestKind
messages_enums
only.Source§fn from(value: FetchSnapshotRequest) -> RequestKind
fn from(value: FetchSnapshotRequest) -> RequestKind
Source§impl HeaderVersion for FetchSnapshotRequest
impl HeaderVersion for FetchSnapshotRequest
Source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
Source§impl Message for FetchSnapshotRequest
impl Message for FetchSnapshotRequest
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
Source§impl PartialEq for FetchSnapshotRequest
impl PartialEq for FetchSnapshotRequest
Source§impl Request for FetchSnapshotRequest
Available on crate features client
and broker
only.
impl Request for FetchSnapshotRequest
client
and broker
only.