Struct pact_mock_server::MockServer [] [src]

pub struct MockServer {
    pub id: String,
    pub port: i32,
    pub server: u64,
    pub matches: Vec<MatchResult>,
    pub resources: Vec<CString>,
    pub pact: Pact,
}

Struct to represent a mock server

Fields

Mock server unique ID

Port the mock server is running on

Address of the server implementing the Listening trait

List of all match results for requests this mock server has received

List of resources that need to be cleaned up when the mock server completes

Pact that this mock server is based on

Methods

impl MockServer
[src]

Creates a new mock server with the given ID and pact

Sets the port that the mock server is listening on

Sets the address of the server implementing the Listening trait

Converts this mock server to a Json struct

Returns all the mismatches that have occured with this mock server

Mock server writes it pact out to the provided directory

Returns the URL of the mock server

Trait Implementations

impl PartialEq for MockServer
[src]

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

This method tests for !=.