pub struct JournalRecord {
pub offset: u64,
pub key: String,
pub payload: Arc<Bytes>,
pub appended_at: i64,
}Expand description
One published event, retained verbatim.
payload is the exact bytes the projector published, so a replay is
byte-identical to what a live subscriber received rather than a
re-projection of current state.
Fields§
§offset: u64§key: String§payload: Arc<Bytes>§appended_at: i64Unix seconds, for the age bound.
Trait Implementations§
Source§impl Clone for JournalRecord
impl Clone for JournalRecord
Auto Trait Implementations§
impl Freeze for JournalRecord
impl RefUnwindSafe for JournalRecord
impl Send for JournalRecord
impl Sync for JournalRecord
impl Unpin for JournalRecord
impl UnsafeUnpin for JournalRecord
impl UnwindSafe for JournalRecord
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