pub trait V4Interaction: Interaction + Send + Sync {
Show 16 methods // Required methods fn to_json(&self) -> Value; fn to_super(&self) -> &(dyn Interaction + Send + Sync + RefUnwindSafe); 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 + RefUnwindSafe>; 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 + RefUnwindSafe>; fn unique_key(&self) -> String;
}
Expand description

V4 Interaction trait

Required Methods§

source

fn to_json(&self) -> Value

Convert the interaction to a JSON Value

source

fn to_super(&self) -> &(dyn Interaction + Send + Sync + RefUnwindSafe)

Convert the interaction to its super trait

source

fn to_super_mut(&mut self) -> &mut (dyn Interaction + Send + Sync)

Convert the interaction to its super trait

source

fn key(&self) -> Option<String>

Key for this interaction

source

fn boxed_v4(&self) -> Box<dyn V4Interaction + Send + Sync + RefUnwindSafe>

Clones this interaction and wraps it in a box

source

fn comments(&self) -> HashMap<String, Value>

Annotations and comments associated with this interaction

source

fn comments_mut(&mut self) -> &mut HashMap<String, Value>

Mutable access to the annotations and comments associated with this interaction

source

fn v4_type(&self) -> V4InteractionType

Type of this V4 interaction

source

fn plugin_config(&self) -> HashMap<String, HashMap<String, Value>>

Any configuration added to the interaction from a plugin

source

fn plugin_config_mut(&mut self) -> &mut HashMap<String, HashMap<String, Value>>

Any configuration added to the interaction from a plugin

source

fn interaction_markup(&self) -> InteractionMarkup

Markup added to the interaction to render in UIs

source

fn interaction_markup_mut(&mut self) -> &mut InteractionMarkup

Markup added to the interaction to render in UIs

source

fn transport(&self) -> Option<String>

Transport used with the interaction

source

fn set_transport(&mut self, transport: Option<String>)

Set the transport used with the interaction

source

fn with_unique_key( &self ) -> Box<dyn V4Interaction + Send + Sync + RefUnwindSafe>

Creates a new version with a calculated key

source

fn unique_key(&self) -> String

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

Trait Implementations§

source§

impl Clone for Box<dyn V4Interaction + Send + Sync + RefUnwindSafe>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Display for dyn V4Interaction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Box<dyn V4Interaction + Send + Sync + RefUnwindSafe>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§