pub struct StreamRecord {
pub sequence_number: u64,
pub event_type: StreamEventType,
pub key: Key,
pub old_image: Option<Item>,
pub new_image: Option<Item>,
pub timestamp: i64,
}Expand description
A stream record capturing a single item change
Fields§
§sequence_number: u64Sequence number (globally unique, monotonically increasing)
event_type: StreamEventTypeType of change event
key: KeyThe key of the modified item
old_image: Option<Item>The item before modification (if applicable and view type includes it)
new_image: Option<Item>The item after modification (if applicable and view type includes it)
timestamp: i64Approximate timestamp when the change occurred (milliseconds since epoch)
Implementations§
Trait Implementations§
Source§impl Clone for StreamRecord
impl Clone for StreamRecord
Source§fn clone(&self) -> StreamRecord
fn clone(&self) -> StreamRecord
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 StreamRecord
impl Debug for StreamRecord
Source§impl<'de> Deserialize<'de> for StreamRecord
impl<'de> Deserialize<'de> for StreamRecord
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 StreamRecord
impl RefUnwindSafe for StreamRecord
impl Send for StreamRecord
impl Sync for StreamRecord
impl Unpin for StreamRecord
impl UnwindSafe for StreamRecord
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