pub struct AppState {
pub files_dir: PathBuf,
pub backend_url: String,
pub api_key: String,
pub allowed_origins: Vec<String>,
pub http: Client,
pub files_cache: FileCache,
pub min_free_space_bytes: u64,
}Expand description
Shared state injected into every axum handler.
Fields§
§files_dir: PathBuf§backend_url: String§api_key: String§allowed_origins: Vec<String>§http: Client§files_cache: FileCache§min_free_space_bytes: u64Implementations§
Trait Implementations§
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