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
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)
Methods
impl PactSpecification
[src]
impl PactSpecification
pub fn version_str(&self) -> String
[src]
pub fn version_str(&self) -> String
Returns the semantic version string of the specification version.
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Returns a descriptive string of the specification version.
Trait Implementations
impl Debug for PactSpecification
[src]
impl Debug for PactSpecification
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PactSpecification
[src]
impl Clone for PactSpecification
fn clone(&self) -> PactSpecification
[src]
fn clone(&self) -> PactSpecification
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for PactSpecification
[src]
impl PartialEq for PactSpecification
Auto Trait Implementations
impl Send for PactSpecification
impl Send for PactSpecification
impl Sync for PactSpecification
impl Sync for PactSpecification