Struct pact_plugin_driver::proto::InteractionResponse [−][src]
pub struct InteractionResponse {
pub contents: Option<Body>,
pub rules: HashMap<String, MatchingRules>,
pub generators: HashMap<String, Generator>,
pub message_metadata: Option<Struct>,
pub plugin_configuration: Option<PluginConfiguration>,
pub interaction_markup: String,
pub interaction_markup_type: i32,
pub part_name: String,
}
Expand description
Response to the configure/setup an interaction request
Fields
contents: Option<Body>
Contents for the interaction
rules: HashMap<String, MatchingRules>
All matching rules to apply
generators: HashMap<String, Generator>
Generators to apply
message_metadata: Option<Struct>
For message interactions, any metadata to be applied
plugin_configuration: Option<PluginConfiguration>
Plugin specific data to be persisted in the pact file
interaction_markup: String
Markdown/HTML formatted text representation of the interaction
interaction_markup_type: i32
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)
Implementations
Returns the enum value of interaction_markup_type
, or the default if the field is set to an invalid enum value.
Sets interaction_markup_type
to the provided enum value.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InteractionResponse
impl Send for InteractionResponse
impl Sync for InteractionResponse
impl Unpin for InteractionResponse
impl UnwindSafe for InteractionResponse
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