Enum pact_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

Unknown or unsupported specification version

V1

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

V1_1

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

V2

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

V3

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

V4

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

Implementations

impl PactSpecification[src]

pub fn version_str(&self) -> String[src]

Returns the semantic version string of the specification version.

pub fn to_string(&self) -> String[src]

Returns a descriptive string of the specification version.

Trait Implementations

impl Clone for PactSpecification[src]

impl Debug for PactSpecification[src]

impl Default for PactSpecification[src]

impl<'de> Deserialize<'de> for PactSpecification[src]

impl PartialEq<PactSpecification> for PactSpecification[src]

impl PartialOrd<PactSpecification> for PactSpecification[src]

impl Serialize for PactSpecification[src]

impl StructuralPartialEq for PactSpecification[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.