Function pact_models::json_utils::body_from_json
source · [−]pub fn body_from_json(
request: &Value,
fieldname: &str,
headers: &Option<HashMap<String, Vec<String>>>
) -> OptionalBody
Expand description
Returns the body from the JSON struct with the provided field name