Struct terminal_cli::CliPropertyVar
[−]
[src]
pub struct CliPropertyVar<T, Fo, Fi> where Fo: Fn(&T) -> String, Fi: Fn(&str) -> Option<T> {
pub var_name: String,
pub var_value: T,
pub var_output: Fo,
pub var_input: Fi,
pub val_hint: String,
}
Owned property that can be changed with set var_name <value>
and retrieved with
get var_name
.
Fields
var_name | Name of the property |
var_value | Initial value of the property |
var_output | Output formatter |
var_input | Input parser |
val_hint | Hint for the setter explanation. |