Struct kafka::client::ProduceMessage [] [src]

pub struct ProduceMessage<'a, 'b> {
    pub key: Option<&'b [u8]>,
    pub value: Option<&'b [u8]>,
    pub topic: &'a str,
    pub partition: i32,
}

Message data to be sent/produced to a particular topic partition. See KafkaClient::produce_messages and Producer::send.

Fields

The "key" data of this message.

The "value" data of this message.

The topic to produce this message to.

The partition (of the corresponding topic) to produce this message to.

Methods

impl<'a, 'b> ProduceMessage<'a, 'b>
[src]

[src]

A convenient constructor method to create a new produce message with all attributes specified.

Trait Implementations

impl<'a, 'b> Debug for ProduceMessage<'a, 'b>
[src]

[src]

Formats the value using the given formatter.

impl<'a, 'b> AsRef<ProduceMessage<'a, 'b>> for ProduceMessage<'a, 'b>
[src]

[src]

Performs the conversion.