pub struct MaintenanceQueryServiceImpl { /* private fields */ }Expand description
Implemented MaintenanceQueryService — one PgPool, builds a repo per call (the pool is
Arc-internal, so cloning is cheap).
Implementations§
Trait Implementations§
Source§impl MaintenanceQueryService for MaintenanceQueryServiceImpl
impl MaintenanceQueryService for MaintenanceQueryServiceImpl
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,
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,
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,
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,
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,
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,
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,
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,
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,
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
Auto Trait Implementations§
impl !RefUnwindSafe for MaintenanceQueryServiceImpl
impl !UnwindSafe for MaintenanceQueryServiceImpl
impl Freeze for MaintenanceQueryServiceImpl
impl Send for MaintenanceQueryServiceImpl
impl Sync for MaintenanceQueryServiceImpl
impl Unpin for MaintenanceQueryServiceImpl
impl UnsafeUnpin for MaintenanceQueryServiceImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more