pub struct ExpectedArg {
pub cli_name: String,
pub rust_name: String,
pub kind: ArgKind,
}Fields§
§cli_name: String§rust_name: String§kind: ArgKindImplementations§
Source§impl ExpectedArg
impl ExpectedArg
pub fn flag(cli_name: impl Into<String>, rust_name: impl Into<String>) -> Self
pub fn required_arg( cli_name: impl Into<String>, rust_name: impl Into<String>, ) -> Self
pub fn optional_arg( cli_name: impl Into<String>, rust_name: impl Into<String>, ) -> Self
pub fn vec_arg( cli_name: impl Into<String>, rust_name: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for ExpectedArg
impl Clone for ExpectedArg
Source§fn clone(&self) -> ExpectedArg
fn clone(&self) -> ExpectedArg
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 moreAuto Trait Implementations§
impl Freeze for ExpectedArg
impl RefUnwindSafe for ExpectedArg
impl Send for ExpectedArg
impl Sync for ExpectedArg
impl Unpin for ExpectedArg
impl UnsafeUnpin for ExpectedArg
impl UnwindSafe for ExpectedArg
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