pub struct HistoryParam {
pub enabled: Option<bool>,
pub recent_threads: Option<i32>,
}Expand description
Controls how much historical context is retained for the session.
Fields§
§enabled: Option<bool>Enables chat users to access previous ChatKit threads. Defaults to true.
recent_threads: Option<i32>Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.
Trait Implementations§
Source§impl Clone for HistoryParam
impl Clone for HistoryParam
Source§fn clone(&self) -> HistoryParam
fn clone(&self) -> HistoryParam
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 HistoryParam
impl Debug for HistoryParam
Source§impl Default for HistoryParam
impl Default for HistoryParam
Source§fn default() -> HistoryParam
fn default() -> HistoryParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryParam
impl<'de> Deserialize<'de> for HistoryParam
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
Source§impl PartialEq for HistoryParam
impl PartialEq for HistoryParam
Source§impl Serialize for HistoryParam
impl Serialize for HistoryParam
impl StructuralPartialEq for HistoryParam
Auto Trait Implementations§
impl Freeze for HistoryParam
impl RefUnwindSafe for HistoryParam
impl Send for HistoryParam
impl Sync for HistoryParam
impl Unpin for HistoryParam
impl UnwindSafe for HistoryParam
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