Enum nu_protocol::ReturnSuccess [−][src]
pub enum ReturnSuccess {
Value(Value),
DebugValue(Value),
Action(CommandAction),
}
Expand description
The fundamental success type in the pipeline. Commands return these values as their main responsibility
Variants
Value(Value)
A value to be used or shown to the user
Tuple Fields of Value
0: Value
DebugValue(Value)
A debug-enabled value to be used or shown to the user
Tuple Fields of DebugValue
0: Value
Action(CommandAction)
An action to be performed as values pass out of the command. These are performed rather than passed to the next command in the pipeline
Tuple Fields of Action
Implementations
Helper function for an action to change the the path
Helper function to create simple values for returning
Helper function to create simple debug-enabled values for returning
Helper function for creating actions
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Get a return success ready to be pretty-printed
A convenience method that prints out the document without colors in 70 columns. Generally, you should use plain_string or colored_string if possible, but display() can be useful for trace lines and things like that, where you don’t have control over the terminal. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReturnSuccess
impl Send for ReturnSuccess
impl Sync for ReturnSuccess
impl Unpin for ReturnSuccess
impl UnwindSafe for ReturnSuccess
Blanket Implementations
Mutably borrows from an owned value. Read more