Struct mailpot_web::AppState
source · pub struct AppState {
pub conf: Configuration,
pub root_url_prefix: Value,
pub public_url: String,
pub site_title: Cow<'static, str>,
pub site_subtitle: Option<Cow<'static, str>>,
pub user_store: Arc<RwLock<HashMap<i64, User>>>,
}
Fields§
§conf: Configuration
§root_url_prefix: Value
§public_url: String
§site_title: Cow<'static, str>
§site_subtitle: Option<Cow<'static, str>>
§user_store: Arc<RwLock<HashMap<i64, User>>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
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