pub struct EvalItem {
pub content: Value,
pub role: String,
pub _type: Option<String>,
}
Fields§
§content: Value
Text inputs to the model - can contain template strings.
role: String
The role of the message input. One of user
, assistant
, system
, or developer
.
_type: Option<String>
The type of the message input. Always message
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EvalItem
impl<'de> Deserialize<'de> for EvalItem
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 EvalItem
impl RefUnwindSafe for EvalItem
impl Send for EvalItem
impl Sync for EvalItem
impl Unpin for EvalItem
impl UnwindSafe for EvalItem
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