clementine_core::utils

Trait NamedEntity

Source
pub trait NamedEntity {
    const ENTITY_NAME: &'static str;
}
Expand description

A trait for entities that have a name, operator, watchtower, verifier, etc. Used to distinguish between state machines with different owners in the database, and to provide a human-readable name for the entity for task names.

Required Associated Constants§

Source

const ENTITY_NAME: &'static str

A string identifier for this owner type used to distinguish between state machines with different owners in the database.

§Example

“operator”, “watchtower”, “verifier”, “user”

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> NamedEntity for Operator<C>
where C: CitreaClientT,

Source§

const ENTITY_NAME: &'static str = "operator"

Source§

impl<C> NamedEntity for Verifier<C>
where C: CitreaClientT,

Source§

const ENTITY_NAME: &'static str = "verifier"