pub enum ValueHint {
None,
Any,
File,
Dir,
Path,
Command,
Url,
Choices(Vec<Choice>),
}Expand description
What an argument’s value is, for help hints and shell completion.
Variants§
None
A flag: takes no value.
Any
Any value; completion offers nothing specific.
File
A file path.
Dir
A directory path.
Path
A file or directory path.
Command
A command name.
Url
A URL.
Choices(Vec<Choice>)
One of a fixed set of values.
Trait Implementations§
impl Eq for ValueHint
impl StructuralPartialEq for ValueHint
Auto Trait Implementations§
impl Freeze for ValueHint
impl RefUnwindSafe for ValueHint
impl Send for ValueHint
impl Sync for ValueHint
impl Unpin for ValueHint
impl UnsafeUnpin for ValueHint
impl UnwindSafe for ValueHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.