pub struct CdcUseCases { /* private fields */ }Implementations§
Source§impl CdcUseCases
impl CdcUseCases
pub fn new( alert_repository: Arc<dyn BoardAlertRepository>, board_member_repository: Arc<dyn BoardMemberRepository>, meeting_repository: Arc<dyn MeetingRepository>, ) -> Self
Sourcepub async fn create_alert(
&self,
caller_owner_id: Uuid,
building_id: Uuid,
dto: CreateBoardAlertDto,
) -> Result<BoardAlertResponseDto, AppError>
pub async fn create_alert( &self, caller_owner_id: Uuid, building_id: Uuid, dto: CreateBoardAlertDto, ) -> Result<BoardAlertResponseDto, AppError>
Émet une alerte du conseil à destination de la prochaine AG.
dto.target_meeting_id est fourni par l’appelant (typiquement la
prochaine AGO déjà planifiée pour l’immeuble) plutôt que résolu
automatiquement : le dépôt n’a aujourd’hui aucune notion de « la
prochaine AG » côté MeetingRepository (une seule requête ad hoc,
fenêtrée à 7 jours, existe pour le dashboard — non généralisable).
Ce use case valide en revanche que la cible est bien une AG à venir
du même immeuble, ce qui est la substance de target=AG_next.
Sourcepub async fn list_alerts_for_meeting(
&self,
meeting_id: Uuid,
) -> Result<Vec<BoardAlertResponseDto>, AppError>
pub async fn list_alerts_for_meeting( &self, meeting_id: Uuid, ) -> Result<Vec<BoardAlertResponseDto>, AppError>
Liste les alertes visibles à une AG donnée.
Sourcepub async fn elect_members(
&self,
building_id: Uuid,
dto: ElectCdcMembersDto,
) -> Result<Vec<BoardMemberResponseDto>, AppError>
pub async fn elect_members( &self, building_id: Uuid, dto: ElectCdcMembersDto, ) -> Result<Vec<BoardMemberResponseDto>, AppError>
Élit les membres du conseil à l’issue d’une AG clôturée.
L’AG doit être Completed : sa clôture suppose déjà le quorum double
vérifié (Art. 3.87 §5 CC, Meeting::assert_can_complete). Une AG
encore Scheduled ou Cancelled n’a jamais prouvé son quorum — 422
(Story 4.7 @negative).
Auto Trait Implementations§
impl !RefUnwindSafe for CdcUseCases
impl !UnwindSafe for CdcUseCases
impl Freeze for CdcUseCases
impl Send for CdcUseCases
impl Sync for CdcUseCases
impl Unpin for CdcUseCases
impl UnsafeUnpin for CdcUseCases
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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>
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>
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