pub enum ActionResult {
    Done,
    ParentActionRequest(CommandContext),
    Result(CommandContext),
    Custom(Box<dyn Debug>),
}
Expand description

ActionResult stores result of action. Commandのアクション結果を格納し、runの結果として返却するためのenum。

Variants

Done

Done shows that action is done.

ParentActionRequest(CommandContext)

ParentActionRequest shows that action requested to show help.

Result(CommandContext)

Shows return Context, reached Command and Action as result for parse and run.

Custom(Box<dyn Debug>)

Custom result(can have Box including dyn Debug).

Implementations

Returns true if self is done.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.