pub struct ProduceRequest {
pub transactional_id: NullableString,
pub acks: Int16,
pub timeout_ms: Int32,
pub topic_data: Vec<ProduceRequestTopicData>,
}Fields§
§transactional_id: NullableStringThe transactional ID, or null if the producer is not transactional.
Added in version 3.
acks: Int16The 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.
timeout_ms: Int32The timeout to await a response in milliseconds.
topic_data: Vec<ProduceRequestTopicData>Each topic to produce to.
Trait Implementations§
Source§impl Debug for ProduceRequest
impl Debug for ProduceRequest
Source§impl RequestBody for ProduceRequest
impl RequestBody for ProduceRequest
Source§const API_VERSION_RANGE: ApiVersionRange
const API_VERSION_RANGE: ApiVersionRange
That’s enough for for.
Note that we do not support produce request prior to version 3, since this is the version when message version 2 was introduced (KIP-98).
Source§const FIRST_TAGGED_FIELD_IN_REQUEST_VERSION: ApiVersion
const FIRST_TAGGED_FIELD_IN_REQUEST_VERSION: ApiVersion
The first version of the messages (not of the header) that uses tagged fields, if any. Read more
Source§type ResponseBody = ProduceResponse
type ResponseBody = ProduceResponse
The response type that will follow when issuing this request.
Source§const FIRST_TAGGED_FIELD_IN_RESPONSE_VERSION: ApiVersion = Self::FIRST_TAGGED_FIELD_IN_REQUEST_VERSION
const FIRST_TAGGED_FIELD_IN_RESPONSE_VERSION: ApiVersion = Self::FIRST_TAGGED_FIELD_IN_REQUEST_VERSION
Normally the same as
FIRST_TAGGED_FIELD_IN_REQUEST_VERSION but
there are some special snowflakes.Source§impl<W> WriteVersionedType<W> for ProduceRequestwhere
W: Write,
impl<W> WriteVersionedType<W> for ProduceRequestwhere
W: Write,
fn write_versioned( &self, writer: &mut W, version: ApiVersion, ) -> Result<(), WriteVersionedError>
Auto Trait Implementations§
impl Freeze for ProduceRequest
impl RefUnwindSafe for ProduceRequest
impl Send for ProduceRequest
impl Sync for ProduceRequest
impl Unpin for ProduceRequest
impl UnwindSafe for ProduceRequest
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