zng_app::event

Trait CommandInfoExt

Source
pub trait CommandInfoExt {
    // Required methods
    fn info(self) -> CommandMetaVar<Txt>;
    fn init_info(self, info: impl Into<Txt>) -> Self;
}
Expand description

Adds the info command metadata.

Required Methods§

Source

fn info(self) -> CommandMetaVar<Txt>

Gets a read-write variable that is a short informational string about the command.

Source

fn init_info(self, info: impl Into<Txt>) -> Self

Sets the initial info if it is not set.

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§