pub struct PostgresStatsRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl StatsRepository for PostgresStatsRepository
impl StatsRepository for PostgresStatsRepository
fn get_admin_dashboard_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AdminDashboardStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_seed_data_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SeedDataStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_syndic_stats<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SyndicDashboardStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_syndic_stats<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SyndicDashboardStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns stats for all buildings in the given organization.
Source§fn get_owner_stats<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SyndicDashboardStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_owner_stats<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SyndicDashboardStats, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns stats for buildings where the given owner has active units.
Source§fn find_owner_id_by_user_id<'life0, 'async_trait>(
&'life0 self,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Uuid>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_owner_id_by_user_id<'life0, 'async_trait>(
&'life0 self,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Uuid>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Looks up the owner record id associated with a user id.
Source§fn get_syndic_urgent_tasks<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<UrgentTask>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_syndic_urgent_tasks<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<UrgentTask>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns urgent tasks (overdue expenses, upcoming meetings, old pending charges)
for the given organization.
Auto Trait Implementations§
impl Freeze for PostgresStatsRepository
impl !RefUnwindSafe for PostgresStatsRepository
impl Send for PostgresStatsRepository
impl Sync for PostgresStatsRepository
impl Unpin for PostgresStatsRepository
impl !UnwindSafe for PostgresStatsRepository
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<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.