Struct nu_protocol::EvaluatedArgs
source · [−]pub struct EvaluatedArgs {
pub positional: Option<Vec<Value>>,
pub named: Option<IndexMap<String, Value>>,
}
Expand description
The set of positional and named arguments, after their values have been evaluated.
- Positional arguments are those who are given as values, without any associated flag. For example, in
foo arg1 arg2
, botharg1
andarg2
are positional arguments. - Named arguments are those associated with a flag. For example,
foo --given bar
the named argument would be namegiven
and the valuebar
.
Fields
positional: Option<Vec<Value>>
named: Option<IndexMap<String, Value>>
Implementations
Retrieve a subset of positional arguments starting at a given position
Get the nth positional argument, error if not possible
Return true if the set of named arguments contains the name provided
Gets the corresponding Value for the named argument given, if possible
Gets the corresponding Value for the named argument given, error if not possible
Iterates over the positional arguments
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for EvaluatedArgs
impl Send for EvaluatedArgs
impl Sync for EvaluatedArgs
impl Unpin for EvaluatedArgs
impl UnwindSafe for EvaluatedArgs
Blanket Implementations
Mutably borrows from an owned value. Read more