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
DebugValue(Value)A debug-enabled value to be used or shown to the user
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
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
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 ReturnSuccessimpl Send for ReturnSuccessimpl Sync for ReturnSuccessimpl Unpin for ReturnSuccessimpl UnwindSafe for ReturnSuccessBlanket Implementations
Mutably borrows from an owned value. Read more
fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder