pub struct EntitySnapshotProjection { /* private fields */ }Expand description
Entity snapshot projection - maintains current state of each entity
Implementations§
Trait Implementations§
Source§impl Projection for EntitySnapshotProjection
impl Projection for EntitySnapshotProjection
Source§fn process(&self, event: &Event) -> Result<()>
fn process(&self, event: &Event) -> Result<()>
Process an event and update the projection state
Source§fn get_state(&self, entity_id: &str) -> Option<Value>
fn get_state(&self, entity_id: &str) -> Option<Value>
Get the current state of the projection for an entity
Auto Trait Implementations§
impl Freeze for EntitySnapshotProjection
impl !RefUnwindSafe for EntitySnapshotProjection
impl Send for EntitySnapshotProjection
impl Sync for EntitySnapshotProjection
impl Unpin for EntitySnapshotProjection
impl UnsafeUnpin for EntitySnapshotProjection
impl !UnwindSafe for EntitySnapshotProjection
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