Struct pact_models::provider_states::ProviderState
source · 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
sourceimpl ProviderState
impl ProviderState
sourcepub fn default(name: &str) -> ProviderState
pub fn default(name: &str) -> ProviderState
Creates a default state with the given name
sourcepub fn from_json_v3(pact_json: &Value) -> ProviderState
pub fn from_json_v3(pact_json: &Value) -> ProviderState
Constructs a provider state from the Json
struct
Trait Implementations
sourceimpl Clone for ProviderState
impl Clone for ProviderState
sourcefn clone(&self) -> ProviderState
fn clone(&self) -> ProviderState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ProviderState
impl Debug for ProviderState
sourceimpl<'de> Deserialize<'de> for ProviderState
impl<'de> Deserialize<'de> for ProviderState
sourcefn 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
sourceimpl Hash for ProviderState
impl Hash for ProviderState
sourceimpl PactJsonVerifier for ProviderState
impl PactJsonVerifier for ProviderState
sourcefn verify_json(
path: &str,
pact_json: &Value,
strict: bool,
_spec_version: PactSpecification
) -> Vec<PactFileVerificationResult>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn verify_json(
path: &str,
pact_json: &Value,
strict: bool,
_spec_version: PactSpecification
) -> Vec<PactFileVerificationResult>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Verify the JSON format. Will return an error if the list contains any Error result
sourceimpl PartialEq<ProviderState> for ProviderState
impl PartialEq<ProviderState> for ProviderState
sourceimpl Serialize for ProviderState
impl Serialize for ProviderState
impl Eq for ProviderState
impl StructuralEq for ProviderState
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.