18 lines
325 B
Rust
18 lines
325 B
Rust
use std::{collections::HashMap, path::PathBuf};
|
|
|
|
use dashmap::DashMap;
|
|
use tokio::sync::OnceCell;
|
|
|
|
use crate::
|
|
DownloadContext
|
|
;
|
|
|
|
pub struct AppState {
|
|
pub token: OnceCell<AppInitData>,
|
|
pub context_cache: DashMap<(String, String), DownloadContext>,
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub struct AppInitData {
|
|
pub key: String,
|
|
} |