pub enum ChatCompletionRoles {
System,
User,
Assistant,
}
Expand description
Represents the different roles that can be used in a chat completion message.
System
: Indicates a message from the system.User
: Indicates a message from the user.Assistant
: Indicates a message from the assistant.
Variants§
Trait Implementations§
Source§impl Clone for ChatCompletionRoles
impl Clone for ChatCompletionRoles
Source§fn clone(&self) -> ChatCompletionRoles
fn clone(&self) -> ChatCompletionRoles
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 Debug for ChatCompletionRoles
impl Debug for ChatCompletionRoles
Source§impl<'de> Deserialize<'de> for ChatCompletionRoles
impl<'de> Deserialize<'de> for ChatCompletionRoles
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
Auto Trait Implementations§
impl Freeze for ChatCompletionRoles
impl RefUnwindSafe for ChatCompletionRoles
impl Send for ChatCompletionRoles
impl Sync for ChatCompletionRoles
impl Unpin for ChatCompletionRoles
impl UnwindSafe for ChatCompletionRoles
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