pub enum VectorOutcome {
Pass,
Fail {
diff: String,
actual: ObservedResponse,
},
}Expand description
What the runner saw when it ran a vector.
Variants§
Pass
The vector’s expected and observed responses matched on every field the runner checks.
Fail
The vector’s expected and observed responses
did not match. The expected and actual
carry the same shape, so a structured
consumer can render a diff without re-running
the request.
Fields
§
diff: StringA short, human-readable summary of the difference. Useful for an operator reading a CI log.
§
actual: ObservedResponseWhat the runner saw, in the same shape
the fixture uses for expected.
Trait Implementations§
Source§impl Clone for VectorOutcome
impl Clone for VectorOutcome
Source§impl Debug for VectorOutcome
impl Debug for VectorOutcome
Source§impl<'de> Deserialize<'de> for VectorOutcome
impl<'de> Deserialize<'de> for VectorOutcome
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
impl Eq for VectorOutcome
Source§impl PartialEq for VectorOutcome
impl PartialEq for VectorOutcome
Source§impl Serialize for VectorOutcome
impl Serialize for VectorOutcome
impl StructuralPartialEq for VectorOutcome
Auto Trait Implementations§
impl Freeze for VectorOutcome
impl RefUnwindSafe for VectorOutcome
impl Send for VectorOutcome
impl Sync for VectorOutcome
impl Unpin for VectorOutcome
impl UnsafeUnpin for VectorOutcome
impl UnwindSafe for VectorOutcome
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