pub struct StatusConfig {
pub enabled: bool,
pub store: String,
pub ttl_seconds: u64,
pub max_records: usize,
pub cleanup_interval_seconds: u64,
pub db_path: Option<PathBuf>,
pub redis_url: Option<String>,
}Expand description
Top-level application configuration. Submission status tracking configuration (RFC 086, 087).
Fields§
§enabled: boolEnable status tracking. When false, no records are created. Requires restart to change.
store: StringBackend: “memory” only in MVP. Requires restart to change.
ttl_seconds: u64Record time-to-live in seconds. SIGHUP-reloadable.
max_records: usizeMaximum records in store. SIGHUP-reloadable.
cleanup_interval_seconds: u64Background cleanup interval in seconds. SIGHUP-reloadable.
db_path: Option<PathBuf>Path to the SQLite database file. Required when store = "sqlite".
The parent directory must exist; the file is created on first run.
redis_url: Option<String>Redis/Valkey URL for the shared status store. Required when store = "redis".
Example: redis://127.0.0.1:6379/0 or redis+unix:///var/run/redis/redis.sock.
Trait Implementations§
Source§impl Clone for StatusConfig
impl Clone for StatusConfig
Source§fn clone(&self) -> StatusConfig
fn clone(&self) -> StatusConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusConfig
impl Debug for StatusConfig
Source§impl Default for StatusConfig
impl Default for StatusConfig
Source§impl<'de> Deserialize<'de> for StatusConfig
impl<'de> Deserialize<'de> for StatusConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatusConfig
impl RefUnwindSafe for StatusConfig
impl Send for StatusConfig
impl Sync for StatusConfig
impl Unpin for StatusConfig
impl UnsafeUnpin for StatusConfig
impl UnwindSafe for StatusConfig
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