pub struct Vector {
pub name: String,
pub request: Value,
pub expected: ExpectedResponse,
}Expand description
One conformance vector, exactly as it appears in a JSONL fixture file. The shape is a JSON object, one per line.
Fields§
§name: StringA short, human-readable name the runner prints when reporting a diff. The fixture file is the authoritative list; an operator reading the report goes by name to find the failing case.
request: ValueThe JSON-RPC envelope to send. Must carry
jsonrpc: "2.0", id, method, and
params. The runner does not synthesise
defaults.
expected: ExpectedResponseThe expected response: either a result or
an error with the code and a substring the
server’s message must contain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vector
impl<'de> Deserialize<'de> for Vector
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 Vector
impl StructuralPartialEq for Vector
Auto Trait Implementations§
impl Freeze for Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnsafeUnpin for Vector
impl UnwindSafe for Vector
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