WIP
This commit is contained in:
parent
98d03f6e7a
commit
637cff3ebd
22 changed files with 206 additions and 267 deletions
|
@ -4,7 +4,7 @@ use collections::{HashMap, HashSet};
|
|||
use serde::Deserialize;
|
||||
use std::any::{type_name, Any};
|
||||
|
||||
pub trait Action: Any + Send + Sync {
|
||||
pub trait Action: Any + Send {
|
||||
fn qualified_name() -> SharedString
|
||||
where
|
||||
Self: Sized;
|
||||
|
@ -19,7 +19,7 @@ pub trait Action: Any + Send + Sync {
|
|||
|
||||
impl<A> Action for A
|
||||
where
|
||||
A: for<'a> Deserialize<'a> + PartialEq + Any + Send + Sync + Clone + Default,
|
||||
A: for<'a> Deserialize<'a> + PartialEq + Any + Send + Clone + Default,
|
||||
{
|
||||
fn qualified_name() -> SharedString {
|
||||
type_name::<A>().into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue