pub struct Conversation {
pub goal: String,
pub manner: String,
pub sample: u32,
pub exchanges: Vec<Exchange>,
pub ended: Ending,
pub score: ConversationScore,
}Expand description
One conversation: the goal, the manner, what was said and how it scored.
Fields§
§goal: StringThe goal’s id.
manner: StringThe manner played.
sample: u32Which sample of the pair it is.
exchanges: Vec<Exchange>The turns, in order.
ended: EndingWhy the conversation stopped.
score: ConversationScoreIts score.
Implementations§
Source§impl Conversation
impl Conversation
Sourcepub fn transcript(&self) -> String
pub fn transcript(&self) -> String
The conversation as a person would read it back.
Trait Implementations§
Source§impl Clone for Conversation
impl Clone for Conversation
Source§impl Debug for Conversation
impl Debug for Conversation
Source§impl<'de> Deserialize<'de> for Conversation
impl<'de> Deserialize<'de> for Conversation
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 PartialEq for Conversation
impl PartialEq for Conversation
Source§impl Serialize for Conversation
impl Serialize for Conversation
impl StructuralPartialEq for Conversation
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnsafeUnpin for Conversation
impl UnwindSafe for Conversation
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