pub struct Card {
pub instruction: Instruction,
pub issues: Option<Vec<Issue>>,
pub raw: Option<String>,
pub exit_code: Option<i32>,
pub error: Option<String>,
pub reused: bool,
pub took: Option<String>,
pub tokens: Option<u64>,
pub model: Option<String>,
}Expand description
An eval at a glance: what it checks, its result once it has one, and what running it cost.
For a reused result, took and tokens are what reuse saved. Everything else about the
request stays in its Detail’s fields.
Fields§
§instruction: InstructionIts instruction, each Artifact it names with that Artifact’s path.
issues: Option<Vec<Issue>>What the result says must change, numbered as shown; none before a result.
raw: Option<String>The whole result as saved, pretty-printed JSON.
exit_code: Option<i32>§error: Option<String>§reused: bool§took: Option<String>The execution’s own span: from its start to its end, or to now while it runs.
tokens: Option<u64>Total tokens over every attempt.
model: Option<String>Trait Implementations§
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Forget for Card
impl Freeze for Cardwhere
*const u8 is !null: Freeze,
PhantomData<InstructionPart>: Freeze,
*const LeafNode<ArtifactName, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ArtifactName, String)>>: Freeze,
PhantomData<Issue>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Card
impl RefUnwindSafe for Card
impl Send for Cardwhere
RawVecInner: Send,
NodeRef<Owned, ArtifactName, String, LeafOrInternal>: Send,
BoxRaw<(ArtifactName, String)>: Send,
impl Sync for Cardwhere
RawVecInner: Sync,
NodeRef<Owned, ArtifactName, String, LeafOrInternal>: Sync,
BoxRaw<(ArtifactName, String)>: Sync,
impl Unpin for Card
impl UnsafeUnpin for Cardwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<InstructionPart>: UnsafeUnpin,
*const LeafNode<ArtifactName, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ArtifactName, String)>>: UnsafeUnpin,
PhantomData<Issue>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Card
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