Trait pact_models::v4::interaction::V4Interaction [−][src]
pub trait V4Interaction: Interaction + Send + Sync {
fn to_json(&self) -> Value;
fn to_super(&self) -> &dyn Interaction;
fn key(&self) -> Option<String>;
fn boxed_v4(&self) -> Box<dyn V4Interaction>;
fn comments(&self) -> HashMap<String, Value>;
fn comments_mut(&mut self) -> &mut HashMap<String, Value>;
fn v4_type(&self) -> V4InteractionType;
fn plugin_config(&self) -> HashMap<String, HashMap<String, Value>>;
fn interaction_markup(&self) -> InteractionMarkup;
}
Expand description
V4 Interaction trait
Required methods
fn to_super(&self) -> &dyn Interaction
fn to_super(&self) -> &dyn Interaction
Convert the interaction to its super trait
fn boxed_v4(&self) -> Box<dyn V4Interaction>
fn boxed_v4(&self) -> Box<dyn V4Interaction>
Clones this interaction and wraps it in a box
Annotations and comments associated with this interaction
fn comments_mut(&mut self) -> &mut HashMap<String, Value>
fn comments_mut(&mut self) -> &mut HashMap<String, Value>
Mutable access to the annotations and comments associated with this interaction
fn v4_type(&self) -> V4InteractionType
fn v4_type(&self) -> V4InteractionType
Type of this V4 interaction
Any configuration added to the interaction from a plugin
fn interaction_markup(&self) -> InteractionMarkup
fn interaction_markup(&self) -> InteractionMarkup
Markup added to the interaction to render in UIs