pub struct BatchItem {
pub id: String,
pub prompt: Prompt,
pub meta: Option<Value>,
}Fields§
§id: StringCaller-supplied key. Results are matched on this, never on position.
prompt: Prompt§meta: Option<Value>Carried through to the result untouched — useful for gold answers, subject ids, or whatever the caller is joining against.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BatchItem
impl<'de> Deserialize<'de> for BatchItem
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 BatchItem
impl RefUnwindSafe for BatchItem
impl Send for BatchItem
impl Sync for BatchItem
impl Unpin for BatchItem
impl UnsafeUnpin for BatchItem
impl UnwindSafe for BatchItem
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