pub struct Fixture {
pub id: String,
pub category: Option<String>,
pub description: String,
pub tags: Vec<String>,
pub skip: Option<SkipDirective>,
pub call: Option<String>,
pub input: Value,
pub mock_response: Option<MockResponse>,
pub assertions: Vec<Assertion>,
pub source: String,
}Expand description
A single e2e test fixture.
Fields§
§id: StringUnique identifier (used as test function name).
category: Option<String>Optional category (defaults to parent directory name).
description: StringHuman-readable description.
Optional tags for filtering.
skip: Option<SkipDirective>Skip directive.
call: Option<String>Named call config to use (references [e2e.calls.<name>]).
When omitted, uses the default [e2e.call].
input: ValueInput data passed to the function under test.
mock_response: Option<MockResponse>Optional mock HTTP response for testing HTTP clients.
assertions: Vec<Assertion>List of assertions to check.
source: StringSource file path (populated during loading).
Implementations§
Source§impl Fixture
impl Fixture
Sourcepub fn needs_mock_server(&self) -> bool
pub fn needs_mock_server(&self) -> bool
Returns true if this fixture requires a mock HTTP server.
Sourcepub fn is_streaming_mock(&self) -> bool
pub fn is_streaming_mock(&self) -> bool
Returns true if the mock response uses streaming (SSE).
Sourcepub fn resolved_category(&self) -> String
pub fn resolved_category(&self) -> String
Get the resolved category (explicit or from source directory).
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