pub struct AppState {
pub library_db: Mutex<Connection>,
pub secrets_db: Mutex<Connection>,
pub metadata_db: Mutex<Connection>,
}Expand description
Define o estado global da aplicação com ambas as conexões
Fields§
§library_db: Mutex<Connection>§secrets_db: Mutex<Connection>§metadata_db: Mutex<Connection>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