pub struct StreamMetadata {
pub source_id: Option<String>,
pub partition_id: Option<u32>,
pub sequence_number: Option<u64>,
pub attributes: HashMap<String, String>,
}Expand description
Metadata associated with a stream element.
Fields§
§source_id: Option<String>Source identifier
partition_id: Option<u32>Partition ID
sequence_number: Option<u64>Sequence number
attributes: HashMap<String, String>Custom attributes
Trait Implementations§
Source§impl Clone for StreamMetadata
impl Clone for StreamMetadata
Source§fn clone(&self) -> StreamMetadata
fn clone(&self) -> StreamMetadata
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 StreamMetadata
impl Debug for StreamMetadata
Source§impl Default for StreamMetadata
impl Default for StreamMetadata
Source§fn default() -> StreamMetadata
fn default() -> StreamMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreamMetadata
impl<'de> Deserialize<'de> for StreamMetadata
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 StreamMetadata
impl RefUnwindSafe for StreamMetadata
impl Send for StreamMetadata
impl Sync for StreamMetadata
impl Unpin for StreamMetadata
impl UnsafeUnpin for StreamMetadata
impl UnwindSafe for StreamMetadata
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