pub struct Metadata {
pub topic: String,
pub partition: i32,
pub offset: i64,
pub headers: HashMap<String, String>,
}
Expand description
Metadata for a consumed message
Fields§
§topic: String
§partition: i32
§offset: i64
§headers: HashMap<String, String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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