pub struct HistoryParamArgs { /* private fields */ }Expand description
Builder for HistoryParam.
Implementations§
Source§impl HistoryParamArgs
impl HistoryParamArgs
Sourcepub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enabled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Enables chat users to access previous ChatKit threads. Defaults to true.
Sourcepub fn recent_threads<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn recent_threads<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.
Sourcepub fn build(&self) -> Result<HistoryParam, OpenAIError>
pub fn build(&self) -> Result<HistoryParam, OpenAIError>
Trait Implementations§
Source§impl Clone for HistoryParamArgs
impl Clone for HistoryParamArgs
Source§fn clone(&self) -> HistoryParamArgs
fn clone(&self) -> HistoryParamArgs
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 HistoryParamArgs
impl Debug for HistoryParamArgs
Auto Trait Implementations§
impl Freeze for HistoryParamArgs
impl RefUnwindSafe for HistoryParamArgs
impl Send for HistoryParamArgs
impl Sync for HistoryParamArgs
impl Unpin for HistoryParamArgs
impl UnwindSafe for HistoryParamArgs
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