Struct kafka_protocol::messages::produce_request::ProduceRequest   
source · #[non_exhaustive]pub struct ProduceRequest {
    pub transactional_id: Option<TransactionalId>,
    pub acks: i16,
    pub timeout_ms: i32,
    pub topic_data: IndexMap<TopicName, TopicProduceData>,
    pub unknown_tagged_fields: BTreeMap<i32, Vec<u8>>,
}Expand description
Valid versions: 0-9
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transactional_id: Option<TransactionalId>The transactional ID, or null if the producer is not transactional.
Supported API versions: 3-9
acks: i16The number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments, 1 for only the leader and -1 for the full ISR.
Supported API versions: 0-9
timeout_ms: i32The timeout to await a response in milliseconds.
Supported API versions: 0-9
topic_data: IndexMap<TopicName, TopicProduceData>Each topic to produce to.
Supported API versions: 0-9
unknown_tagged_fields: BTreeMap<i32, Vec<u8>>Other tagged fields
Trait Implementations§
source§impl Builder for ProduceRequest
 
impl Builder for ProduceRequest
source§impl Clone for ProduceRequest
 
impl Clone for ProduceRequest
source§fn clone(&self) -> ProduceRequest
 
fn clone(&self) -> ProduceRequest
Returns a copy 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 ProduceRequest
 
impl Debug for ProduceRequest
source§impl Decodable for ProduceRequest
 
impl Decodable for ProduceRequest
source§impl Default for ProduceRequest
 
impl Default for ProduceRequest
source§impl Encodable for ProduceRequest
 
impl Encodable for ProduceRequest
source§fn encode<B: ByteBufMut>(
    &self,
    buf: &mut B,
    version: i16
) -> Result<(), EncodeError>
 
fn encode<B: ByteBufMut>( &self, buf: &mut B, version: i16 ) -> Result<(), EncodeError>
Encode the message into the target buffer.
source§fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
 
fn compute_size(&self, version: i16) -> Result<usize, EncodeError>
Compute the total size of the message when encoded.
source§impl HeaderVersion for ProduceRequest
 
impl HeaderVersion for ProduceRequest
source§fn header_version(version: i16) -> i16
 
fn header_version(version: i16) -> i16
Maps a header version to a given version for a particular API message.
source§impl Message for ProduceRequest
 
impl Message for ProduceRequest
source§const VERSIONS: VersionRange = _
 
const VERSIONS: VersionRange = _
The valid versions for this message.
source§impl PartialEq<ProduceRequest> for ProduceRequest
 
impl PartialEq<ProduceRequest> for ProduceRequest
source§fn eq(&self, other: &ProduceRequest) -> bool
 
fn eq(&self, other: &ProduceRequest) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.