Function pact_models::pact::write_pact[][src]

pub fn write_pact(
    pact: Box<dyn Pact>,
    path: &Path,
    pact_spec: PactSpecification,
    overwrite: bool
) -> Result<()>
Expand description

Writes the pact out to the provided path. If there is an existing pact at the path, the two pacts will be merged together unless overwrite is true. Returns an error if the file can not be written or the pacts can not be merged.