Registry / testing / pact-models

pact-models

JSON →
library1.3.10rscratesunverified

Core models for dealing with Pact files in the Pact-Rust ecosystem.

# Cargo.toml [dependencies] pact_models = "1.3.10"
INSTALL
IMPORT
SIG · PACT-MODELS
P
pact-models
testingrustv1.3.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pact
use pact_models::Pact;

Deserialize a Pact from a JSON file.

use pact_models::Pact; use std::fs; let pact_json = fs::read_to_string("pact.json").unwrap(); let pact: Pact = serde_json::from_str(&pact_json).unwrap(); println!("{:?}", pact);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pact-models — cargo add pact-models · libregistry