pub struct SessionsConfig {
pub max_history: usize,
pub title_max_chars: usize,
}Expand description
Session list and auto-title configuration, nested under [memory.sessions] in TOML.
Fields§
§max_history: usizeMaximum number of sessions returned by list operations (0 = unlimited).
title_max_chars: usizeMaximum characters for auto-generated session titles.
Trait Implementations§
Source§impl Clone for SessionsConfig
impl Clone for SessionsConfig
Source§fn clone(&self) -> SessionsConfig
fn clone(&self) -> SessionsConfig
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 SessionsConfig
impl Debug for SessionsConfig
Source§impl Default for SessionsConfig
impl Default for SessionsConfig
Source§impl<'de> Deserialize<'de> for SessionsConfigwhere
SessionsConfig: Default,
impl<'de> Deserialize<'de> for SessionsConfigwhere
SessionsConfig: 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 SessionsConfig
impl RefUnwindSafe for SessionsConfig
impl Send for SessionsConfig
impl Sync for SessionsConfig
impl Unpin for SessionsConfig
impl UnsafeUnpin for SessionsConfig
impl UnwindSafe for SessionsConfig
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