pub struct StoreHooks {
pub redaction: Option<SharedEventRedactor>,
pub event_signer: Option<SessionSigner>,
pub receipt_signer: Option<SessionSigner>,
pub retention: RetentionPolicy,
pub archive_sink: Option<SharedArchiveSink>,
}Expand description
Optional processors a host can plug in. Mutation hooks run inline before persistence; redaction is also reapplied to public retrieval projections as defense in depth for older stored data.
Fields§
§redaction: Option<SharedEventRedactor>Applied to event payloads and headers before persistence and again when events are read, snapshotted, or replayed.
event_signer: Option<SessionSigner>If set, every event is signed at append time. Without a signer
only the Receipt event minted by SessionStore::close is
signed (which is enough to verify the chain end-to-end).
receipt_signer: Option<SessionSigner>Required to mint receipts on close. Without this, close
still finalises the chain root hash but emits an unsigned
Receipt event.
retention: RetentionPolicyDefault retention policy applied to new sessions when their meta does not override it.
archive_sink: Option<SharedArchiveSink>Optional durable archive destination. The default
SessionStore::sweep_retention writes archived sessions and
tombstones here before the rows leave primary storage; see
super::retention::ArchiveSink.
Trait Implementations§
Source§impl Clone for StoreHooks
impl Clone for StoreHooks
Source§fn clone(&self) -> StoreHooks
fn clone(&self) -> StoreHooks
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more