#[non_exhaustive]pub struct ConversationProcessConfig {
pub recent_sentences_count: i32,
/* private fields */
}Available on crate features
conversation-profiles or conversations only.Expand description
Config to process conversation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.recent_sentences_count: i32Number of recent non-small-talk sentences to use as context for article and FAQ suggestion
Implementations§
Source§impl ConversationProcessConfig
impl ConversationProcessConfig
pub fn new() -> Self
Sourcepub fn set_recent_sentences_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_recent_sentences_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of recent_sentences_count.
§Example
ⓘ
let x = ConversationProcessConfig::new().set_recent_sentences_count(42);Trait Implementations§
Source§impl Clone for ConversationProcessConfig
impl Clone for ConversationProcessConfig
Source§fn clone(&self) -> ConversationProcessConfig
fn clone(&self) -> ConversationProcessConfig
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 ConversationProcessConfig
impl Debug for ConversationProcessConfig
Source§impl Default for ConversationProcessConfig
impl Default for ConversationProcessConfig
Source§fn default() -> ConversationProcessConfig
fn default() -> ConversationProcessConfig
Returns the “default value” for a type. Read more
Source§impl Message for ConversationProcessConfig
impl Message for ConversationProcessConfig
impl StructuralPartialEq for ConversationProcessConfig
Auto Trait Implementations§
impl Freeze for ConversationProcessConfig
impl RefUnwindSafe for ConversationProcessConfig
impl Send for ConversationProcessConfig
impl Sync for ConversationProcessConfig
impl Unpin for ConversationProcessConfig
impl UnwindSafe for ConversationProcessConfig
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