pub struct GlobalSettings {
pub session_auto_save: bool,
pub session_max_history: usize,
pub checkpoint_enabled: bool,
pub checkpoint_interval_sec: u32,
pub audit_enabled: bool,
pub mcp_enabled: bool,
}Expand description
全局设置
Fields§
§session_auto_save: bool会话自动保存
session_max_history: usize会话最大历史数
checkpoint_enabled: bool检查点启用
checkpoint_interval_sec: u32检查点间隔(秒)
audit_enabled: bool审计日志启用
mcp_enabled: boolMCP 启用
Trait Implementations§
Source§impl Clone for GlobalSettings
impl Clone for GlobalSettings
Source§fn clone(&self) -> GlobalSettings
fn clone(&self) -> GlobalSettings
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 GlobalSettings
impl Debug for GlobalSettings
Source§impl Default for GlobalSettings
impl Default for GlobalSettings
Source§impl<'de> Deserialize<'de> for GlobalSettings
impl<'de> Deserialize<'de> for GlobalSettings
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 GlobalSettings
impl RefUnwindSafe for GlobalSettings
impl Send for GlobalSettings
impl Sync for GlobalSettings
impl Unpin for GlobalSettings
impl UnsafeUnpin for GlobalSettings
impl UnwindSafe for GlobalSettings
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