pub struct MeetingUseCases { /* private fields */ }Implementations§
Source§impl MeetingUseCases
impl MeetingUseCases
pub fn new(repository: Arc<dyn MeetingRepository>) -> Self
Sourcepub fn new_with_convocation(
repository: Arc<dyn MeetingRepository>,
convocation_use_cases: Arc<ConvocationUseCases>,
) -> Self
pub fn new_with_convocation( repository: Arc<dyn MeetingRepository>, convocation_use_cases: Arc<ConvocationUseCases>, ) -> Self
Create MeetingUseCases with ConvocationUseCases for automatic 2nd convocation scheduling
pub async fn create_meeting( &self, request: CreateMeetingRequest, ) -> Result<MeetingResponse, String>
pub async fn get_meeting( &self, id: Uuid, ) -> Result<Option<MeetingResponse>, String>
pub async fn list_meetings_by_building( &self, building_id: Uuid, ) -> Result<Vec<MeetingResponse>, String>
pub async fn list_meetings_paginated( &self, page_request: &PageRequest, organization_id: Option<Uuid>, ) -> Result<(Vec<MeetingResponse>, i64), String>
pub async fn update_meeting( &self, id: Uuid, request: UpdateMeetingRequest, ) -> Result<MeetingResponse, String>
pub async fn add_agenda_item( &self, id: Uuid, request: AddAgendaItemRequest, ) -> Result<MeetingResponse, String>
pub async fn complete_meeting( &self, id: Uuid, request: CompleteMeetingRequest, ) -> Result<MeetingResponse, String>
pub async fn cancel_meeting(&self, id: Uuid) -> Result<MeetingResponse, String>
pub async fn reschedule_meeting( &self, id: Uuid, new_date: DateTime<Utc>, ) -> Result<MeetingResponse, String>
pub async fn delete_meeting(&self, id: Uuid) -> Result<bool, String>
Sourcepub async fn attach_minutes(
&self,
id: Uuid,
document_id: Uuid,
) -> Result<MeetingResponse, String>
pub async fn attach_minutes( &self, id: Uuid, document_id: Uuid, ) -> Result<MeetingResponse, String>
Attach minutes document to a completed meeting (Issue #313)
Sourcepub async fn validate_quorum(
&self,
meeting_id: Uuid,
present_quotas: f64,
total_quotas: f64,
) -> Result<(bool, MeetingResponse), String>
pub async fn validate_quorum( &self, meeting_id: Uuid, present_quotas: f64, total_quotas: f64, ) -> Result<(bool, MeetingResponse), String>
Valide le quorum d’une AG (Art. 3.87 §5 CC). Doit être appelé AVANT que les votes soient ouverts. Si quorum non atteint, déclenche automatiquement la création d’une 2e convocation pour le même bâtiment (si ConvocationUseCases disponible). Retourne Ok(true) si quorum atteint, Ok(false) si 2e convocation requise.
Auto Trait Implementations§
impl Freeze for MeetingUseCases
impl !RefUnwindSafe for MeetingUseCases
impl Send for MeetingUseCases
impl Sync for MeetingUseCases
impl Unpin for MeetingUseCases
impl !UnwindSafe for MeetingUseCases
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.