pub fn new(topic: &'a str,
               partition: i32,
               key: Option<&'b [u8]>,
               value: Option<&'b [u8]>)
               -> Self {
        ProduceMessage {
            key: key,
            value: value,
            topic: topic,
            partition: partition,
        }
    }
/// A convenient constructor method to create a new produce
/// message with all attributes specified.
A convenient constructor method to create a new produce
message with all attributes specified.
A convenient constructor method to create a new produce message with all attributes specified .
pub fn new(topic: &'a str,
               partition: i32,
               key: Option<&'b [u8]>,
               value: Option<&'b [u8]>)
               -> Self {
        ProduceMessage {
            key: key,
            value: value,
            topic: topic,
            partition: partition,
        }
    }
pub fn new ( topic : & ' a str , partition : i32 , key : Option < & ' b [ u8 ] > , value : Option < & ' b [ u8 ] > ) -> Self { ProduceMessage { key : key , value : value , topic : topic , partition : partition , } }
A convenient constructor method to create a new produce
message with all attributes specified.
A convenient constructor method to create a new produce message with all attributes specified .
topic
&'a str
partition
i32
key
Option<&'b [u8]>
value
Option<&'b [u8]>