pub enum MessagesMessageRole {
User,
Assistant,
}Expand description
The role of the message sender.
JSON schema
{
"description": "The role of the message sender.",
"type": "string",
"enum": [
"user",
"assistant"
]
}Variants§
Trait Implementations§
Source§impl Clone for MessagesMessageRole
impl Clone for MessagesMessageRole
Source§fn clone(&self) -> MessagesMessageRole
fn clone(&self) -> MessagesMessageRole
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 moreimpl Copy for MessagesMessageRole
Source§impl Debug for MessagesMessageRole
impl Debug for MessagesMessageRole
Source§impl<'de> Deserialize<'de> for MessagesMessageRole
impl<'de> Deserialize<'de> for MessagesMessageRole
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 MessagesMessageRole
impl Display for MessagesMessageRole
impl Eq for MessagesMessageRole
Source§impl FromStr for MessagesMessageRole
impl FromStr for MessagesMessageRole
Source§impl Hash for MessagesMessageRole
impl Hash for MessagesMessageRole
Source§impl Ord for MessagesMessageRole
impl Ord for MessagesMessageRole
Source§fn cmp(&self, other: &MessagesMessageRole) -> Ordering
fn cmp(&self, other: &MessagesMessageRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MessagesMessageRole
impl PartialEq for MessagesMessageRole
Source§impl PartialOrd for MessagesMessageRole
impl PartialOrd for MessagesMessageRole
Source§impl Serialize for MessagesMessageRole
impl Serialize for MessagesMessageRole
impl StructuralPartialEq for MessagesMessageRole
Source§impl TryFrom<&String> for MessagesMessageRole
impl TryFrom<&String> for MessagesMessageRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for MessagesMessageRole
impl TryFrom<&str> for MessagesMessageRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for MessagesMessageRole
impl TryFrom<String> for MessagesMessageRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for MessagesMessageRole
impl RefUnwindSafe for MessagesMessageRole
impl Send for MessagesMessageRole
impl Sync for MessagesMessageRole
impl Unpin for MessagesMessageRole
impl UnsafeUnpin for MessagesMessageRole
impl UnwindSafe for MessagesMessageRole
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.