pub trait EntityDescriptorConst {
    type Spec: Serialize + DeserializeOwned + JsonSchema + Clone + PartialEq + Eq + Debug;
    type State: Serialize + DeserializeOwned + JsonSchema + Clone + PartialEq + Eq + Debug;

    const NAMESPACE: &'static str;
    const NAME: &'static str;
    const VERSION: &'static str;
    const KIND: &'static str;
}
Expand description

A marker trait for entity types.

Should be implementes on the struct representing the entities spec.

Required Associated Types§

source

type Spec: Serialize + DeserializeOwned + JsonSchema + Clone + PartialEq + Eq + Debug

Entity specification.

source

type State: Serialize + DeserializeOwned + JsonSchema + Clone + PartialEq + Eq + Debug

The main entity state.

Required Associated Constants§

source

const NAMESPACE: &'static str

source

const NAME: &'static str

source

const VERSION: &'static str

source

const KIND: &'static str

Implementors§

source§

impl EntityDescriptorConst for AppV1Spec

source§

const NAMESPACE: &'static str = "wasmer.io"

source§

const NAME: &'static str = "App"

source§

const VERSION: &'static str = "1-alpha1"

source§

const KIND: &'static str = "wasmer.io/App.v1"

§

type Spec = AppV1Spec

§

type State = AppStateV1

source§

impl EntityDescriptorConst for HttpRouterSpecV1

source§

const NAMESPACE: &'static str = "wasmer.io"

source§

const NAME: &'static str = "HttpRouter"

source§

const VERSION: &'static str = "1alpha1"

source§

const KIND: &'static str = "wasmer.io/HttpRouter.v1alpha1"

§

type Spec = HttpRouterSpecV1

§

type State = ()