pub struct PropertyEvent<T: Clone> {
pub timestamp: Instant,
pub old_value: T,
pub new_value: T,
pub event_number: usize,
pub thread_id: String,
}Expand description
Represents a single change event in the property’s history
This struct captures all details of a value change for event sourcing, enabling time-travel debugging, audit logs, and event replay capabilities.
Fields§
§timestamp: InstantWhen the change occurred
old_value: TThe value before the change
new_value: TThe value after the change
event_number: usizeSequential event number (starts at 0 for first change)
thread_id: StringThread that triggered the change (for debugging)
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for PropertyEvent<T>
impl<T: Clone + Clone> Clone for PropertyEvent<T>
Source§fn clone(&self) -> PropertyEvent<T>
fn clone(&self) -> PropertyEvent<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for PropertyEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for PropertyEvent<T>where
T: RefUnwindSafe,
impl<T> Send for PropertyEvent<T>where
T: Send,
impl<T> Sync for PropertyEvent<T>where
T: Sync,
impl<T> Unpin for PropertyEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for PropertyEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PropertyEvent<T>where
T: UnwindSafe,
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