pub struct HistoryConfig {
pub enabled: bool,
pub max_age_days: Option<u32>,
pub db_path: Option<String>,
}Expand description
History/analytics configuration section.
Fields§
§enabled: boolEnable history recording (default: true)
max_age_days: Option<u32>Maximum age of history entries in days
db_path: Option<String>Database path (default: .testx/history.db)
Trait Implementations§
Source§impl Clone for HistoryConfig
impl Clone for HistoryConfig
Source§fn clone(&self) -> HistoryConfig
fn clone(&self) -> HistoryConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HistoryConfig
impl Debug for HistoryConfig
Source§impl Default for HistoryConfig
impl Default for HistoryConfig
Source§impl<'de> Deserialize<'de> for HistoryConfigwhere
HistoryConfig: Default,
impl<'de> Deserialize<'de> for HistoryConfigwhere
HistoryConfig: Default,
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 HistoryConfig
impl RefUnwindSafe for HistoryConfig
impl Send for HistoryConfig
impl Sync for HistoryConfig
impl Unpin for HistoryConfig
impl UnsafeUnpin for HistoryConfig
impl UnwindSafe for HistoryConfig
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