Struct pact_models::Consumer
source · pub struct Consumer {
pub name: String,
}
Expand description
Struct that defines the consumer of the pact.
Fields§
§name: String
Each consumer should have a unique name to identify it.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Consumer
impl<'de> Deserialize<'de> for Consumer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PactJsonVerifier for Consumer
impl PactJsonVerifier for Consumer
source§fn verify_json(
path: &str,
pact_json: &Value,
strict: bool,
_spec_version: PactSpecification
) -> Vec<PactFileVerificationResult>
fn verify_json( path: &str, pact_json: &Value, strict: bool, _spec_version: PactSpecification ) -> Vec<PactFileVerificationResult>
Verify the JSON format. Will return an error if the list contains any Error result