backbone-bucket 0.3.0

Bucket Bounded Context: File Storage Module for Backbone Framework
Documentation
//! Domain events for ProcessingJob entity
//!
//! Generated by metaphor-schema. Do not edit manually.

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

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

// <<< CUSTOM
// END CUSTOM

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

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

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