Struct pact_models::generators::JsonHandler [−][src]
pub struct JsonHandler {
pub value: Value,
}
Expand description
Implementation of a content type handler for JSON
Fields
value: Value
JSON document to apply the generators to.
Trait Implementations
fn process_body(
&mut self,
generators: &HashMap<DocPath, Generator>,
mode: &GeneratorTestMode,
context: &HashMap<&str, Value>,
matcher: &Box<dyn VariantMatcher + Send + Sync>
) -> Result<OptionalBody, String>
fn process_body(
&mut self,
generators: &HashMap<DocPath, Generator>,
mode: &GeneratorTestMode,
context: &HashMap<&str, Value>,
matcher: &Box<dyn VariantMatcher + Send + Sync>
) -> Result<OptionalBody, String>
Processes the body using the map of generators, returning a (possibly) updated body.
Auto Trait Implementations
impl RefUnwindSafe for JsonHandler
impl Send for JsonHandler
impl Sync for JsonHandler
impl Unpin for JsonHandler
impl UnwindSafe for JsonHandler
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more