Lines Matching defs:ValueHint
29 pub enum ValueHint {
69 impl Default for ValueHint {
71 ValueHint::Unknown
75 impl FromStr for ValueHint {
79 "unknown" => ValueHint::Unknown,
80 "other" => ValueHint::Other,
81 "anypath" => ValueHint::AnyPath,
82 "filepath" => ValueHint::FilePath,
83 "dirpath" => ValueHint::DirPath,
84 "executablepath" => ValueHint::ExecutablePath,
85 "commandname" => ValueHint::CommandName,
86 "commandstring" => ValueHint::CommandString,
87 "commandwitharguments" => ValueHint::CommandWithArguments,
88 "username" => ValueHint::Username,
89 "hostname" => ValueHint::Hostname,
90 "url" => ValueHint::Url,
91 "emailaddress" => ValueHint::EmailAddress,
92 _ => return Err(format!("unknown ValueHint: `{s}`")),