pub struct AppState<Extra = ()>{
pub unkey_client: UnkeyClient,
pub unkey_api_id: String,
pub internal_secret: String,
pub store: Option<Arc<dyn UsageStore>>,
pub cache: Option<Arc<dyn CacheStore>>,
pub cache_ttl_secs: u64,
pub logger: Option<Arc<dyn AuditLogger>>,
pub extra: Extra,
}Fields§
§unkey_client: UnkeyClient§unkey_api_id: String§internal_secret: String§store: Option<Arc<dyn UsageStore>>§cache: Option<Arc<dyn CacheStore>>§cache_ttl_secs: u64§logger: Option<Arc<dyn AuditLogger>>§extra: ExtraTrait Implementations§
Auto Trait Implementations§
impl<Extra> Freeze for AppState<Extra>where
Extra: Freeze,
impl<Extra = ()> !RefUnwindSafe for AppState<Extra>
impl<Extra> Send for AppState<Extra>
impl<Extra> Sync for AppState<Extra>
impl<Extra> Unpin for AppState<Extra>where
Extra: Unpin,
impl<Extra> UnsafeUnpin for AppState<Extra>where
Extra: UnsafeUnpin,
impl<Extra = ()> !UnwindSafe for AppState<Extra>
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