pub struct LLMMessage {
pub role: String,
pub content: LLMMessageContent,
}Fields§
§role: String§content: LLMMessageContentTrait Implementations§
Source§impl Clone for LLMMessage
impl Clone for LLMMessage
Source§fn clone(&self) -> LLMMessage
fn clone(&self) -> LLMMessage
Returns a duplicate 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 LLMMessage
impl Debug for LLMMessage
Source§impl Default for LLMMessage
impl Default for LLMMessage
Source§fn default() -> LLMMessage
fn default() -> LLMMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LLMMessage
impl<'de> Deserialize<'de> for LLMMessage
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 From<ChatMessage> for LLMMessage
impl From<ChatMessage> for LLMMessage
Source§fn from(chat_message: ChatMessage) -> Self
fn from(chat_message: ChatMessage) -> Self
Converts to this type from the input type.
Source§impl From<LLMMessage> for ChatMessage
impl From<LLMMessage> for ChatMessage
Source§fn from(llm_message: LLMMessage) -> Self
fn from(llm_message: LLMMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LLMMessage
impl RefUnwindSafe for LLMMessage
impl Send for LLMMessage
impl Sync for LLMMessage
impl Unpin for LLMMessage
impl UnwindSafe for LLMMessage
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