pub struct ChatSessionHistory {
pub enabled: bool,
pub recent_threads: Option<i32>,
}Expand description
History retention preferences returned for the session.
Fields§
§enabled: boolIndicates if chat history is persisted for the session.
recent_threads: Option<i32>Number of prior threads surfaced in history views. Defaults to null when all history is retained.
Trait Implementations§
Source§impl Clone for ChatSessionHistory
impl Clone for ChatSessionHistory
Source§fn clone(&self) -> ChatSessionHistory
fn clone(&self) -> ChatSessionHistory
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 ChatSessionHistory
impl Debug for ChatSessionHistory
Source§impl<'de> Deserialize<'de> for ChatSessionHistory
impl<'de> Deserialize<'de> for ChatSessionHistory
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 ChatSessionHistory
impl PartialEq for ChatSessionHistory
Source§impl Serialize for ChatSessionHistory
impl Serialize for ChatSessionHistory
impl StructuralPartialEq for ChatSessionHistory
Auto Trait Implementations§
impl Freeze for ChatSessionHistory
impl RefUnwindSafe for ChatSessionHistory
impl Send for ChatSessionHistory
impl Sync for ChatSessionHistory
impl Unpin for ChatSessionHistory
impl UnwindSafe for ChatSessionHistory
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