Enum pact_matching::models::PactSpecification[][src]

pub enum PactSpecification {
    Unknown,
    V1,
    V1_1,
    V2,
    V3,
    V4,
}

Enum defining the pact specification versions supported by the library

Variants

Unknown or unsupported specification version

First version of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-1)

Second version of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-1.1)

Version two of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-2)

Version three of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-3)

Version four of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-4)

Methods

impl PactSpecification
[src]

Returns the semantic version string of the specification version.

Returns a descriptive string of the specification version.

Trait Implementations

impl Debug for PactSpecification
[src]

Formats the value using the given formatter. Read more

impl Clone for PactSpecification
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PactSpecification
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations