pub enum Message {
Assistant(Arc<str>),
User(Arc<str>),
System(Arc<str>),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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<'_enum> From<&'_enum Message> for MessageRole
impl<'_enum> From<&'_enum Message> for MessageRole
Source§fn from(val: &'_enum Message) -> MessageRole
fn from(val: &'_enum Message) -> MessageRole
Converts to this type from the input type.
Source§impl<'a> From<(MessageRole, &'a str)> for Message
impl<'a> From<(MessageRole, &'a str)> for Message
Source§fn from(value: (MessageRole, &'a str)) -> Self
fn from(value: (MessageRole, &'a str)) -> Self
Converts to this type from the input type.
Source§impl From<Message> for Instruction
impl From<Message> for Instruction
Source§impl From<Message> for MessageRole
impl From<Message> for MessageRole
Source§fn from(val: Message) -> MessageRole
fn from(val: Message) -> MessageRole
Converts to this type from the input type.
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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