pub struct PostgresConvocationRepository { /* private fields */ }Expand description
PostgreSQL implementation of ConvocationRepository
Implementations§
Trait Implementations§
Source§impl ConvocationRepository for PostgresConvocationRepository
impl ConvocationRepository for PostgresConvocationRepository
Source§fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
convocation: &'life1 Convocation,
) -> Pin<Box<dyn Future<Output = Result<Convocation, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
convocation: &'life1 Convocation,
) -> Pin<Box<dyn Future<Output = Result<Convocation, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new convocation
Source§fn find_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find convocation by ID
Source§fn find_by_meeting_id<'life0, 'async_trait>(
&'life0 self,
meeting_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_meeting_id<'life0, 'async_trait>(
&'life0 self,
meeting_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find convocation by meeting ID
Source§fn find_by_building<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_building<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find all convocations for a building
Source§fn find_by_organization<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_organization<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find all convocations for an organization
Source§fn find_by_status<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
status: ConvocationStatus,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_status<'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
status: ConvocationStatus,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find convocations by status
Source§fn find_pending_scheduled<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_pending_scheduled<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find convocations scheduled to be sent (status = Scheduled and scheduled_send_date <= now)
Source§fn find_needing_reminder<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_needing_reminder<'life0, 'async_trait>(
&'life0 self,
now: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Convocation>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Find sent convocations that need reminder (sent but 3 days before meeting, reminder not sent yet)
Source§fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
convocation: &'life1 Convocation,
) -> Pin<Box<dyn Future<Output = Result<Convocation, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
convocation: &'life1 Convocation,
) -> Pin<Box<dyn Future<Output = Result<Convocation, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update convocation
Source§fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete convocation
Auto Trait Implementations§
impl Freeze for PostgresConvocationRepository
impl !RefUnwindSafe for PostgresConvocationRepository
impl Send for PostgresConvocationRepository
impl Sync for PostgresConvocationRepository
impl Unpin for PostgresConvocationRepository
impl !UnwindSafe for PostgresConvocationRepository
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.