backbone-digest 0.3.0

KPI digests — the periodic KPI-email engine: a declarative name-keyed KPI registry other modules extend, per-recipient fenced rendering with declared (never row-count) KPI drops, the anti-spam slowdown ladder, a shared tips carousel, and a daily plain-pull cron whose due-date column is the queue (Odoo digest port)
//! Domain events for DigestSubscription entity
//!
//! Generated by metaphor-schema. Do not edit manually.

use backbone_messaging::CrudEvent;
use crate::domain::entity::DigestSubscription;

/// Domain events for DigestSubscription — type alias over the generic CrudEvent.
///
/// To add entity-specific events, replace this alias with a wrapper
/// enum containing a `Crud(CrudEvent<DigestSubscription>)` variant.
pub type DigestSubscriptionEvent = CrudEvent<DigestSubscription>;

// <<< CUSTOM
// END CUSTOM

use backbone_messaging::{CrudEventPublisher, NoOpCrudEventPublisher};
use std::sync::Arc;

/// Publisher alias for DigestSubscription events.
pub type DigestSubscriptionEventPublisher = Arc<dyn CrudEventPublisher<DigestSubscription> + Send + Sync>;

/// No-op publisher — discards events silently (useful in tests).
pub type NoopDigestSubscriptionEventPublisher = NoOpCrudEventPublisher<DigestSubscription>;