pub struct Settings {
pub data_dir: PathBuf,
pub public_url: String,
pub bind_host: String,
pub bind_port: u16,
pub session_ttl_hours: i64,
pub totp_issuer: String,
pub worker_register_code_ttl_sec: i64,
pub soft_quota_bytes: u64,
pub default_ttl_days: u64,
pub hard_min_free_pct: u32,
pub log_long_poll_sec: f64,
pub log_long_poll_step_sec: f64,
}Expand description
Frozen runtime settings shared across every axum handler.
Fields§
§data_dir: PathBuf§public_url: String§bind_host: String§bind_port: u16§session_ttl_hours: i64§totp_issuer: String§worker_register_code_ttl_sec: i64§soft_quota_bytes: u64§default_ttl_days: u64§hard_min_free_pct: u32§log_long_poll_sec: f64§log_long_poll_step_sec: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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