pub struct Fixture {
pub name: String,
pub category: String,
pub model: Option<String>,
pub messages: Vec<FixtureMessage>,
pub expected: ExpectedBehavior,
}Expand description
A loaded golden-prompt fixture.
Fields§
§name: StringShort identifier used in reports (must be unique within a suite).
category: StringCategory label for grouping — e.g. "adversarial", "coding".
model: Option<String>Optional model hint for the runner. Runners may ignore this.
messages: Vec<FixtureMessage>Input conversation to replay.
expected: ExpectedBehaviorExpected behaviour — whatever the runner produced must satisfy these.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fixture
impl<'de> Deserialize<'de> for Fixture
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 Fixture
impl RefUnwindSafe for Fixture
impl Send for Fixture
impl Sync for Fixture
impl Unpin for Fixture
impl UnsafeUnpin for Fixture
impl UnwindSafe for Fixture
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