pub struct PostgresBoardMemberRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BoardMemberRepository for PostgresBoardMemberRepository
impl BoardMemberRepository for PostgresBoardMemberRepository
Source§fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
board_member: &'life1 BoardMember,
) -> Pin<Box<dyn Future<Output = Result<BoardMember, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
board_member: &'life1 BoardMember,
) -> Pin<Box<dyn Future<Output = Result<BoardMember, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Crée un nouveau membre du conseil
Source§fn find_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<BoardMember>, 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<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve un membre du conseil par son ID
Source§fn find_by_building<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, 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<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve tous les membres du conseil d’un immeuble
Source§fn find_active_by_building<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_active_by_building<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve tous les membres du conseil actifs d’un immeuble
(mandats non expirés à la date actuelle)
Source§fn find_expiring_soon<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
days_threshold: i32,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_expiring_soon<'life0, 'async_trait>(
&'life0 self,
building_id: Uuid,
days_threshold: i32,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve les membres du conseil dont le mandat expire bientôt (< 60 jours)
Source§fn find_by_owner<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_owner<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve tous les mandats d’un copropriétaire (historique complet)
Source§fn find_by_owner_and_building<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_by_owner_and_building<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<BoardMember>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trouve le mandat d’un copropriétaire pour un immeuble spécifique (actif ou non)
Source§fn has_active_mandate<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn has_active_mandate<'life0, 'async_trait>(
&'life0 self,
owner_id: Uuid,
building_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Vérifie si un copropriétaire a un mandat actif pour un immeuble donné
Source§fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
board_member: &'life1 BoardMember,
) -> Pin<Box<dyn Future<Output = Result<BoardMember, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
board_member: &'life1 BoardMember,
) -> Pin<Box<dyn Future<Output = Result<BoardMember, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Met à jour un membre du conseil (pour renouvellement de mandat)
Auto Trait Implementations§
impl Freeze for PostgresBoardMemberRepository
impl !RefUnwindSafe for PostgresBoardMemberRepository
impl Send for PostgresBoardMemberRepository
impl Sync for PostgresBoardMemberRepository
impl Unpin for PostgresBoardMemberRepository
impl !UnwindSafe for PostgresBoardMemberRepository
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.