pub struct BatchRecord {
pub key: Option<Bytes>,
pub value: Bytes,
}Expand description
A single record within a Request::PublishBatch.
Carries only the key and value — the topic, partition, and leader_epoch are shared across the entire batch.
Fields§
§key: Option<Bytes>§value: BytesTrait Implementations§
Source§impl Clone for BatchRecord
impl Clone for BatchRecord
Source§fn clone(&self) -> BatchRecord
fn clone(&self) -> BatchRecord
Returns a duplicate 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 BatchRecord
impl Debug for BatchRecord
Source§impl<'de> Deserialize<'de> for BatchRecord
impl<'de> Deserialize<'de> for BatchRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for BatchRecord
impl RefUnwindSafe for BatchRecord
impl Send for BatchRecord
impl Sync for BatchRecord
impl Unpin for BatchRecord
impl UnsafeUnpin for BatchRecord
impl UnwindSafe for BatchRecord
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