pub struct AppState {
pub auth_use_cases: Arc<AuthUseCases>,
pub building_use_cases: Arc<BuildingUseCases>,
pub unit_use_cases: Arc<UnitUseCases>,
pub owner_use_cases: Arc<OwnerUseCases>,
pub expense_use_cases: Arc<ExpenseUseCases>,
pub meeting_use_cases: Arc<MeetingUseCases>,
pub document_use_cases: Arc<DocumentUseCases>,
pub pcn_use_cases: Arc<PcnUseCases>,
pub pool: DbPool,
}Fields§
§auth_use_cases: Arc<AuthUseCases>§building_use_cases: Arc<BuildingUseCases>§unit_use_cases: Arc<UnitUseCases>§owner_use_cases: Arc<OwnerUseCases>§expense_use_cases: Arc<ExpenseUseCases>§meeting_use_cases: Arc<MeetingUseCases>§document_use_cases: Arc<DocumentUseCases>§pcn_use_cases: Arc<PcnUseCases>§pool: DbPoolImplementations§
Source§impl AppState
impl AppState
pub fn new( auth_use_cases: AuthUseCases, building_use_cases: BuildingUseCases, unit_use_cases: UnitUseCases, owner_use_cases: OwnerUseCases, expense_use_cases: ExpenseUseCases, meeting_use_cases: MeetingUseCases, document_use_cases: DocumentUseCases, pcn_use_cases: PcnUseCases, pool: DbPool, ) -> Self
Auto Trait Implementations§
impl Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl !UnwindSafe for AppState
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