#[repr(C)]pub enum PactSpecification {
Unknown = 0,
V1 = 1,
V1_1 = 2,
V2 = 3,
V3 = 4,
V4 = 5,
}
Expand description
Enum defining the pact specification versions supported by the library
Variants§
Unknown = 0
Unknown or unsupported specification version
V1 = 1
First version of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-1)
V1_1 = 2
Second version of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-1.1)
V2 = 3
Version two of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-2)
V3 = 4
Version three of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-3)
V4 = 5
Version four of the pact specification (https://github.com/pact-foundation/pact-specification/tree/version-4)
Trait Implementations§
source§impl Clone for PactSpecification
impl Clone for PactSpecification
source§fn clone(&self) -> PactSpecification
fn clone(&self) -> PactSpecification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PactSpecification
impl Debug for PactSpecification
source§impl From<PactSpecification> for PactSpecification
impl From<PactSpecification> for PactSpecification
source§fn from(spec: PactSpecification) -> NonCPactSpecification
fn from(spec: PactSpecification) -> NonCPactSpecification
Converts to this type from the input type.
source§impl From<PactSpecification> for PactSpecification
impl From<PactSpecification> for PactSpecification
source§fn from(spec: NonCPactSpecification) -> PactSpecification
fn from(spec: NonCPactSpecification) -> PactSpecification
Converts to this type from the input type.
source§impl PartialEq for PactSpecification
impl PartialEq for PactSpecification
source§fn eq(&self, other: &PactSpecification) -> bool
fn eq(&self, other: &PactSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PactSpecification
impl StructuralPartialEq for PactSpecification
Auto Trait Implementations§
impl Freeze for PactSpecification
impl RefUnwindSafe for PactSpecification
impl Send for PactSpecification
impl Sync for PactSpecification
impl Unpin for PactSpecification
impl UnwindSafe for PactSpecification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request