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
source§impl PartialEq for Consumer
impl PartialEq for Consumer
impl StructuralPartialEq for Consumer
Auto Trait Implementations§
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnwindSafe for Consumer
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