pub struct PromptOption {
pub label: String,
pub value: String,
pub hint: String,
}Expand description
A single choice presented by a multiselect prompt. value is what the
selection resolves to (an absolute path, or a dependency name); label and
hint are display-only.
Fields§
§label: String§value: String§hint: StringTrait Implementations§
Source§impl Clone for PromptOption
impl Clone for PromptOption
Source§impl Debug for PromptOption
impl Debug for PromptOption
impl Eq for PromptOption
Source§impl PartialEq for PromptOption
impl PartialEq for PromptOption
impl StructuralPartialEq for PromptOption
Auto Trait Implementations§
impl Forget for PromptOption
impl Freeze for PromptOption
impl Move for PromptOption
impl RefUnwindSafe for PromptOption
impl Send for PromptOption
impl Sync for PromptOption
impl Unpin for PromptOption
impl UnsafeUnpin for PromptOption
impl UnwindSafe for PromptOption
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