pub struct ParamArg<'a> {
pub node: Option<&'a str>,
pub name: &'a str,
pub value: &'a str,
}Expand description
The -p/--param override one argument carried: [node:]name:=value,
borrowed from the argument it was parsed out of. Also what
parse_params_yaml reports for each value in a parameter file.
Fields§
§node: Option<&'a str>Some(name) applies only to the node of that NAME; None to every
node (a bare -p, or a parameter file’s /** section).
name: &'a strThe parameter name, dotted for a nested one (gains.kp).
value: &'a strThe value as written. Typed when a node declares the parameter: by the type of the default it declares, never guessed from the text alone.
Trait Implementations§
impl<'a> Copy for ParamArg<'a>
impl<'a> Eq for ParamArg<'a>
impl<'a> StructuralPartialEq for ParamArg<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParamArg<'a>
impl<'a> RefUnwindSafe for ParamArg<'a>
impl<'a> Send for ParamArg<'a>
impl<'a> Sync for ParamArg<'a>
impl<'a> Unpin for ParamArg<'a>
impl<'a> UnsafeUnpin for ParamArg<'a>
impl<'a> UnwindSafe for ParamArg<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more