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

Convert the interaction to a JSON Value

Convert the interaction to its super trait

Key for this interaction

Clones this interaction and wraps it in a box

Annotations and comments associated with this interaction

Mutable access to the annotations and comments associated with this interaction

Type of this V4 interaction

Any configuration added to the interaction from a plugin

Markup added to the interaction to render in UIs

Trait Implementations

Formats the value using the given formatter. Read more

Implementors