pub struct NewChatbotConf {Show 17 fields
pub course_id: Uuid,
pub enabled_to_students: bool,
pub chatbot_name: String,
pub prompt: String,
pub initial_message: String,
pub weekly_tokens_per_user: i32,
pub daily_tokens_per_user: i32,
pub temperature: f32,
pub top_p: f32,
pub frequency_penalty: f32,
pub presence_penalty: f32,
pub response_max_tokens: i32,
pub use_azure_search: bool,
pub maintain_azure_search_index: bool,
pub hide_citations: bool,
pub use_semantic_reranking: bool,
pub default_chatbot: bool,
}
Fields§
§course_id: Uuid
§enabled_to_students: bool
§chatbot_name: String
§prompt: String
§initial_message: String
§weekly_tokens_per_user: i32
§daily_tokens_per_user: i32
§temperature: f32
§top_p: f32
§frequency_penalty: f32
§presence_penalty: f32
§response_max_tokens: i32
§use_azure_search: bool
§maintain_azure_search_index: bool
§hide_citations: bool
§use_semantic_reranking: bool
§default_chatbot: bool
Trait Implementations§
Source§impl Clone for NewChatbotConf
impl Clone for NewChatbotConf
Source§fn clone(&self) -> NewChatbotConf
fn clone(&self) -> NewChatbotConf
Returns a copy 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 Default for NewChatbotConf
impl Default for NewChatbotConf
Source§impl<'de> Deserialize<'de> for NewChatbotConf
impl<'de> Deserialize<'de> for NewChatbotConf
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 NewChatbotConf
impl PartialEq for NewChatbotConf
Source§impl Serialize for NewChatbotConf
impl Serialize for NewChatbotConf
impl StructuralPartialEq for NewChatbotConf
Auto Trait Implementations§
impl Freeze for NewChatbotConf
impl RefUnwindSafe for NewChatbotConf
impl Send for NewChatbotConf
impl Sync for NewChatbotConf
impl Unpin for NewChatbotConf
impl UnwindSafe for NewChatbotConf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more