pub struct DialogueTurn {
pub role: Role,
pub content: String,
}Expand description
A single turn in a multi-turn dialogue — a role/content pair.
Fields§
§role: RoleWho produced this message.
content: StringThe text content of this message.
Implementations§
Trait Implementations§
Source§impl Clone for DialogueTurn
impl Clone for DialogueTurn
Source§fn clone(&self) -> DialogueTurn
fn clone(&self) -> DialogueTurn
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 DialogueTurn
impl Debug for DialogueTurn
Source§impl<'de> Deserialize<'de> for DialogueTurn
impl<'de> Deserialize<'de> for DialogueTurn
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
Auto Trait Implementations§
impl Freeze for DialogueTurn
impl RefUnwindSafe for DialogueTurn
impl Send for DialogueTurn
impl Sync for DialogueTurn
impl Unpin for DialogueTurn
impl UnsafeUnpin for DialogueTurn
impl UnwindSafe for DialogueTurn
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