Skip to main content

MaintenanceQueryService

Trait MaintenanceQueryService 

Source
pub trait MaintenanceQueryService: Send + Sync {
    // Required methods
    fn get_maintenance_schedule<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceScheduleId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceScheduleDto>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_maintenance_schedule_summary<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceScheduleId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceScheduleSummary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn maintenance_schedule_exists<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceScheduleId,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_maintenance_visit<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitDto>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_maintenance_visit_summary<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitSummary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn maintenance_visit_exists<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitId,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_maintenance_visit_part<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitPartId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitPartDto>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_maintenance_visit_part_summary<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitPartId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitPartSummary>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn maintenance_visit_part_exists<'life0, 'async_trait>(
        &'life0 self,
        id: MaintenanceVisitPartId,
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Public query service for Maintenance module

This trait defines read-only operations that other modules can use. Implementations should NOT expose internal domain logic.

Required Methods§

Source

fn get_maintenance_schedule<'life0, 'async_trait>( &'life0 self, id: MaintenanceScheduleId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceScheduleDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceSchedule by ID

Source

fn get_maintenance_schedule_summary<'life0, 'async_trait>( &'life0 self, id: MaintenanceScheduleId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceScheduleSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceSchedule summary by ID

Source

fn maintenance_schedule_exists<'life0, 'async_trait>( &'life0 self, id: MaintenanceScheduleId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if MaintenanceSchedule exists

Source

fn get_maintenance_visit<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceVisit by ID

Source

fn get_maintenance_visit_summary<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceVisit summary by ID

Source

fn maintenance_visit_exists<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if MaintenanceVisit exists

Source

fn get_maintenance_visit_part<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitPartId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitPartDto>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceVisitPart by ID

Source

fn get_maintenance_visit_part_summary<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitPartId, ) -> Pin<Box<dyn Future<Output = Result<Option<MaintenanceVisitPartSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get MaintenanceVisitPart summary by ID

Source

fn maintenance_visit_part_exists<'life0, 'async_trait>( &'life0 self, id: MaintenanceVisitPartId, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if MaintenanceVisitPart exists

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§