pub struct ArgumentSpec { /* private fields */ }Implementations§
Source§impl ArgumentSpec
impl ArgumentSpec
pub fn new(name: impl Into<String>) -> Self
pub fn about(self, about: impl Into<String>) -> Self
pub fn value_type(self, value_type: ValueType) -> Self
pub fn possible_value(self, value: impl Into<String>) -> Self
pub fn required(self, required: bool) -> Self
pub fn multiple(self, multiple: bool) -> Self
pub fn name(&self) -> &str
pub fn about_text(&self) -> &str
pub fn value_type_kind(&self) -> ValueType
pub fn possible_values(&self) -> &[String]
pub fn is_required(&self) -> bool
pub fn is_multiple(&self) -> bool
Trait Implementations§
Source§impl Clone for ArgumentSpec
impl Clone for ArgumentSpec
Source§fn clone(&self) -> ArgumentSpec
fn clone(&self) -> ArgumentSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArgumentSpec
impl Debug for ArgumentSpec
impl Eq for ArgumentSpec
Source§impl PartialEq for ArgumentSpec
impl PartialEq for ArgumentSpec
impl StructuralPartialEq for ArgumentSpec
Auto Trait Implementations§
impl Freeze for ArgumentSpec
impl RefUnwindSafe for ArgumentSpec
impl Send for ArgumentSpec
impl Sync for ArgumentSpec
impl Unpin for ArgumentSpec
impl UnsafeUnpin for ArgumentSpec
impl UnwindSafe for ArgumentSpec
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