[][src]Struct json_schema_test_suite_test_case::TestCase

pub struct TestCase {
    pub name: String,
    pub draft_version: String,
    pub group_description: String,
    pub test_case_description: String,
    pub schema: Value,
    pub instance: Value,
    pub is_valid: bool,
}

Detailed information about the individual test case in JSON-Schema-Test-Suite

Fields

name: String

Test name (unique identifier)

draft_version: String

String representation of the draft version (equialent to the test directory) This is usefull in case your test needs to be aware of the draft version under test

group_description: String

Description of the test group as provided by JSON-Schema-Test-Suite

test_case_description: String

Description of the test group as provided by JSON-Schema-Test-Suite

schema: Value

Schema to be tested

instance: Value

Instance to be validated against the `schema

is_valid: bool

Expected validity status as from JSON-Schema-Test-Suite

Trait Implementations

impl Clone for TestCase[src]

impl Debug for TestCase[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.