pub enum ConversationEntryRole {
User,
Assistant,
System,
ToolResult,
Other(String),
}Expand description
ConversationEntryRole enumeration.
Variants§
User
Assistant
System
ToolResult
Other(String)
A value the API introduced after this SDK was generated.
Implementations§
Trait Implementations§
Source§impl Clone for ConversationEntryRole
impl Clone for ConversationEntryRole
Source§fn clone(&self) -> ConversationEntryRole
fn clone(&self) -> ConversationEntryRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConversationEntryRole
impl Debug for ConversationEntryRole
Source§impl Default for ConversationEntryRole
impl Default for ConversationEntryRole
Source§fn default() -> ConversationEntryRole
fn default() -> ConversationEntryRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationEntryRole
impl<'de> Deserialize<'de> for ConversationEntryRole
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 Display for ConversationEntryRole
impl Display for ConversationEntryRole
impl Eq for ConversationEntryRole
Source§impl From<&str> for ConversationEntryRole
impl From<&str> for ConversationEntryRole
Source§impl Hash for ConversationEntryRole
impl Hash for ConversationEntryRole
Source§impl PartialEq for ConversationEntryRole
impl PartialEq for ConversationEntryRole
Source§impl Serialize for ConversationEntryRole
impl Serialize for ConversationEntryRole
impl StructuralPartialEq for ConversationEntryRole
Auto Trait Implementations§
impl Freeze for ConversationEntryRole
impl RefUnwindSafe for ConversationEntryRole
impl Send for ConversationEntryRole
impl Sync for ConversationEntryRole
impl Unpin for ConversationEntryRole
impl UnsafeUnpin for ConversationEntryRole
impl UnwindSafe for ConversationEntryRole
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.