Trait ElevatedOperation

Source
pub trait ElevatedOperation: DeserializeOwned + Serialize {
    // Required methods
    fn id() -> &'static str;
    fn run(&self);

    // Provided methods
    fn check() -> Result<(), String> { ... }
    fn execute(&self) -> Result<(), String> { ... }
}

Required Methods§

Source

fn id() -> &'static str

Source

fn run(&self)

Provided Methods§

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§