pub struct Fixture {
pub name: String,
pub description: String,
pub category: Option<String>,
pub handler: Option<FixtureHandler>,
pub streaming: Option<FixtureStreaming>,
pub background: Option<FixtureBackground>,
pub request: FixtureRequest,
pub expected_response: FixtureExpectedResponse,
pub tags: Option<Vec<String>>,
}Expand description
Test fixture structure (matching testing_data/*.json)
Fields§
§name: String§description: String§category: Option<String>§handler: Option<FixtureHandler>§streaming: Option<FixtureStreaming>§background: Option<FixtureBackground>§request: FixtureRequest§expected_response: FixtureExpectedResponseTrait 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