Struct pact_models::provider_states::ProviderState [−][src]
Expand description
Struct that encapsulates all the info about a provider state
Fields
name: String
Description of this provider state
params: HashMap<String, Value>
Provider state parameters as key value pairs
Implementations
Creates a default state with the given name
Constructs a provider state from the Json
struct
Constructs a list of provider states from the Json
struct
Trait Implementations
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
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
Auto Trait Implementations
impl RefUnwindSafe for ProviderState
impl Send for ProviderState
impl Sync for ProviderState
impl Unpin for ProviderState
impl UnwindSafe for ProviderState
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more