Struct pact_matching::MatchingContext [−][src]
pub struct MatchingContext {
pub matchers: MatchingRuleCategory,
pub config: DiffConfig,
pub matching_spec: PactSpecification,
pub plugin_configuration: HashMap<String, PluginInteractionConfig>,
}
Expand description
Context used to apply matching logic
Fields
matchers: MatchingRuleCategory
Matching rules that apply when matching with the context
config: DiffConfig
Configuration to apply when matching with the context
matching_spec: PactSpecification
Specification version to apply when matching with the context
plugin_configuration: HashMap<String, PluginInteractionConfig>
Any plugin configuration available for the interaction
Implementations
pub fn new(
config: DiffConfig,
matchers: &MatchingRuleCategory,
plugin_configuration: &HashMap<String, PluginInteractionConfig>
) -> Self
pub fn new(
config: DiffConfig,
matchers: &MatchingRuleCategory,
plugin_configuration: &HashMap<String, PluginInteractionConfig>
) -> Self
Creates a new context with the given config and matching rules
Creates a new empty context with the given config
Clones the current context with the provided matching rules
If there is a matcher defined at the path in this context
Selected the best matcher from the context for the given path
👎 Deprecated since 0.8.12: Replaced with values matcher
Replaced with values matcher
If there is a wildcard matcher defined at the path in this context
If there is a type matcher defined at the path in this context
If there is a values matcher defined at the path in this context
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchingContext
impl Send for MatchingContext
impl Sync for MatchingContext
impl Unpin for MatchingContext
impl UnwindSafe for MatchingContext
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
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