pub fn to_json(&self) -> serde_json::Value {
        json!({
            "id" : json!(self.id.clone()),
            "port" : json!(self.addr.port() as u64),
            "provider" : json!(self.pact.provider.name.clone()),
            "status" : json!(if self.mismatches().is_empty() { "ok" } else { "error" })
        })
    }
/// Converts this mock server to a `Value` struct
Converts this mock server to a `Value` struct
Converts this mock server to a ` Value ` struct
pub fn to_json(&self) -> serde_json::Value {
        json!({
            "id" : json!(self.id.clone()),
            "port" : json!(self.addr.port() as u64),
            "provider" : json!(self.pact.provider.name.clone()),
            "status" : json!(if self.mismatches().is_empty() { "ok" } else { "error" })
        })
    }
pub fn to_json ( & self ) -> serde_json :: Value { json ! ( { " " json ( self id clone ( ) ) " " json ( self addr port ( ) as u64 ) " " json ( self pact provider name clone ( ) ) " " json ( if self mismatches ( ) is_empty ( ) { " " } else { " " } ) } ) }
Converts this mock server to a `Value` struct
Converts this mock server to a ` Value ` struct
&self
&self