pub struct PromptMessage {
pub role: Role,
pub content: Content,
}Expand description
One message of a rendered prompt.
Fields§
§role: Role§content: ContentImplementations§
Trait Implementations§
Source§impl Clone for PromptMessage
impl Clone for PromptMessage
Source§impl Debug for PromptMessage
impl Debug for PromptMessage
impl Eq for PromptMessage
Source§impl PartialEq for PromptMessage
impl PartialEq for PromptMessage
impl StructuralPartialEq for PromptMessage
Auto Trait Implementations§
impl Freeze for PromptMessage
impl RefUnwindSafe for PromptMessage
impl Send for PromptMessage
impl Sync for PromptMessage
impl Unpin for PromptMessage
impl UnsafeUnpin for PromptMessage
impl UnwindSafe for PromptMessage
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