pub trait V4Interaction: Interaction + Send + Sync {
Show 16 methods fn to_json(&self) -> Value; fn to_super(&self) -> &(dyn Interaction + Send + Sync); fn to_super_mut(&mut self) -> &mut (dyn Interaction + Send + Sync); fn key(&self) -> Option<String>; fn boxed_v4(&self) -> Box<dyn V4Interaction + Send + Sync>; 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 plugin_config_mut(
        &mut self
    ) -> &mut HashMap<String, HashMap<String, Value>>; fn interaction_markup(&self) -> InteractionMarkup; fn interaction_markup_mut(&mut self) -> &mut InteractionMarkup; fn transport(&self) -> Option<String>; fn set_transport(&mut self, transport: Option<String>); fn with_unique_key(&self) -> Box<dyn V4Interaction + Send + Sync>; fn unique_key(&self) -> String;
}
Expand description

V4 Interaction trait

Required Methods

Convert the interaction to a JSON Value

Convert the interaction to its super trait

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

Any configuration added to the interaction from a plugin

Markup added to the interaction to render in UIs

Markup added to the interaction to render in UIs

Transport used with the interaction

Set the transport used with the interaction

Creates a new version with a calculated key

Returns the current key if set, otherwise calculates a new one

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors