pub struct OptionInfo {
pub long: &'static str,
pub short: Option<&'static str>,
pub value_type: OptionValueType,
pub description: &'static str,
pub category: &'static str,
}Expand description
Option metadata
Fields§
§long: &'static strLong form (e.g., “–release”)
short: Option<&'static str>Short form if available (e.g., “-r”)
value_type: OptionValueTypeValue type
description: &'static strDescription
category: &'static strCategory (Package Selection, Target Selection, etc.)
Trait Implementations§
Source§impl Clone for OptionInfo
impl Clone for OptionInfo
Source§fn clone(&self) -> OptionInfo
fn clone(&self) -> OptionInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionInfo
impl RefUnwindSafe for OptionInfo
impl Send for OptionInfo
impl Sync for OptionInfo
impl Unpin for OptionInfo
impl UnwindSafe for OptionInfo
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