Struct pact_plugin_driver::content::InteractionContents
source · pub struct InteractionContents {
pub part_name: String,
pub body: OptionalBody,
pub rules: Option<MatchingRuleCategory>,
pub generators: Option<Generators>,
pub metadata: Option<HashMap<String, Value>>,
pub metadata_rules: Option<MatchingRuleCategory>,
pub plugin_config: PluginConfiguration,
pub interaction_markup: String,
pub interaction_markup_type: String,
}
Expand description
Interaction contents setup by the plugin
Fields§
§part_name: String
Description of what part this interaction belongs to (in the case of there being more than one, for instance, request/response messages)
body: OptionalBody
Body/Contents of the interaction
rules: Option<MatchingRuleCategory>
Matching rules to apply
generators: Option<Generators>
Generators to apply
metadata: Option<HashMap<String, Value>>
Message metadata
metadata_rules: Option<MatchingRuleCategory>
Matching rules to apply to message metadata
plugin_config: PluginConfiguration
Plugin configuration data to apply to the interaction
interaction_markup: String
Markup for the interaction to display in any UI
interaction_markup_type: String
The type of the markup (CommonMark or HTML)
Trait Implementations§
source§impl Clone for InteractionContents
impl Clone for InteractionContents
source§fn clone(&self) -> InteractionContents
fn clone(&self) -> InteractionContents
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InteractionContents
impl Debug for InteractionContents
Auto Trait Implementations§
impl !Freeze for InteractionContents
impl RefUnwindSafe for InteractionContents
impl Send for InteractionContents
impl Sync for InteractionContents
impl Unpin for InteractionContents
impl UnwindSafe for InteractionContents
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request