pub fn new<C, P>(consumer: C, provider: P) -> Self
    where
        C: Into<String>,
        P: Into<String>,
    {
        let mut pact = Pact::default();
        pact.consumer = Consumer { name: consumer.into() };
        pact.provider = Provider { name: provider.into() };
        PactBuilder { pact }
    }
/// Create a new `PactBuilder`, specifying the names of the service
/// consuming the API and the service providing it.
Create a new `PactBuilder`, specifying the names of the service
consuming the API and the service providing it.
Create a new ` PactBuilder ` specifying the names of the service consuming the API and the service providing it .
pub fn new<C, P>(consumer: C, provider: P) -> Self
    where
        C: Into<String>,
        P: Into<String>,
    {
        let mut pact = Pact::default();
        pact.consumer = Consumer { name: consumer.into() };
        pact.provider = Provider { name: provider.into() };
        PactBuilder { pact }
    }
pub fn new < C , P > ( consumer : C , provider : P ) -> Self where C : Into < String > , P : Into < String > , { let mut pact = Pact :: default ( ) ; pact . consumer = Consumer { name : consumer . into ( ) } ; pact . provider = Provider { name : provider . into ( ) } ; PactBuilder { pact } }
Create a new `PactBuilder`, specifying the names of the service
consuming the API and the service providing it.
Create a new ` PactBuilder ` specifying the names of the service consuming the API and the service providing it .
consumer
C
provider
P
consumer
C
provider
P