pub struct MeetingUseCases { /* private fields */ }Implementations§
Source§impl MeetingUseCases
impl MeetingUseCases
pub fn new(repository: Arc<dyn MeetingRepository>) -> Self
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 delete_meeting(&self, id: Uuid) -> Result<bool, String>
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> 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 more