Struct kafka_protocol::messages::produce_response::ProduceResponse
source · #[non_exhaustive]pub struct ProduceResponse {
pub responses: IndexMap<TopicName, TopicProduceResponse>,
pub throttle_time_ms: i32,
pub node_endpoints: IndexMap<BrokerId, NodeEndpoint>,
pub unknown_tagged_fields: BTreeMap<i32, Bytes>,
}Expand description
Valid versions: 0-10
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.responses: IndexMap<TopicName, TopicProduceResponse>Each produce response
Supported API versions: 0-10
throttle_time_ms: i32The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 1-10
node_endpoints: IndexMap<BrokerId, NodeEndpoint>Endpoints for all current-leaders enumerated in PartitionProduceResponses, with errors NOT_LEADER_OR_FOLLOWER.
Supported API versions: 10
unknown_tagged_fields: BTreeMap<i32, Bytes>Other tagged fields
Implementations§
source§impl ProduceResponse
impl ProduceResponse
sourcepub fn with_responses(
self,
value: IndexMap<TopicName, TopicProduceResponse>,
) -> Self
pub fn with_responses( self, value: IndexMap<TopicName, TopicProduceResponse>, ) -> Self
Sets responses to the passed value.
Each produce response
Supported API versions: 0-10
sourcepub fn with_throttle_time_ms(self, value: i32) -> Self
pub fn with_throttle_time_ms(self, value: i32) -> Self
Sets throttle_time_ms to the passed value.
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 1-10
sourcepub fn with_node_endpoints(
self,
value: IndexMap<BrokerId, NodeEndpoint>,
) -> Self
pub fn with_node_endpoints( self, value: IndexMap<BrokerId, NodeEndpoint>, ) -> Self
Sets node_endpoints to the passed value.
Endpoints for all current-leaders enumerated in PartitionProduceResponses, with errors NOT_LEADER_OR_FOLLOWER.
Supported API versions: 10
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 ProduceResponse
impl Clone for ProduceResponse
source§fn clone(&self) -> ProduceResponse
fn clone(&self) -> ProduceResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ProduceResponse
impl Debug for ProduceResponse
source§impl Decodable for ProduceResponse
impl Decodable for ProduceResponse
source§impl Default for ProduceResponse
impl Default for ProduceResponse
source§impl Encodable for ProduceResponse
impl Encodable for ProduceResponse
source§impl From<ProduceResponse> for ResponseKind
impl From<ProduceResponse> for ResponseKind
source§fn from(value: ProduceResponse) -> ResponseKind
fn from(value: ProduceResponse) -> ResponseKind
source§impl HeaderVersion for ProduceResponse
impl HeaderVersion for ProduceResponse
source§fn header_version(version: i16) -> i16
fn header_version(version: i16) -> i16
source§impl Message for ProduceResponse
impl Message for ProduceResponse
source§const VERSIONS: VersionRange = _
const VERSIONS: VersionRange = _
source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
source§impl PartialEq for ProduceResponse
impl PartialEq for ProduceResponse
impl StructuralPartialEq for ProduceResponse
Auto Trait Implementations§
impl Freeze for ProduceResponse
impl RefUnwindSafe for ProduceResponse
impl Send for ProduceResponse
impl Sync for ProduceResponse
impl Unpin for ProduceResponse
impl UnwindSafe for ProduceResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)