backbone-activity 0.8.0

Sales activity / touchpoints + rep tasks — the substrate lead/deal sit on
Documentation
//! Application services
//!
//! Generated by metaphor-schema. Do not edit manually.
//!
//! Each entity service is a type alias over `GenericCrudService`.

pub mod error;
pub use error::{ServiceError, ServiceResult};

pub mod activity_service;


pub use activity_service::ActivityService;
pub use activity_service::ActivityRowRules;

/// A `ActivityService` over `repository` with its write guard attached: the way to build it, so its writes are
/// served only with the rules the schema declares.
pub fn build_activity_service(
    repository: std::sync::Arc<crate::infrastructure::persistence::ActivityRepository>,
) -> ActivityService {
    ActivityService::with_repository(repository).with_guard(std::sync::Arc::new(ActivityRowRules))
}