pub struct PythonCommandOpts<T: Parser + CommandFactory + Serialize + Sized + 'static> { /* private fields */ }Expand description
The PythonCommandOpts.
Assigns a Python function to a command name and runs with clap options.
Implementations
sourceimpl<T: Parser + CommandFactory + Serialize + Sized + 'static> PythonCommandOpts<T>
impl<T: Parser + CommandFactory + Serialize + Sized + 'static> PythonCommandOpts<T>
Trait Implementations
sourceimpl<T: Clone + Parser + CommandFactory + Serialize + Sized + 'static> Clone for PythonCommandOpts<T>
impl<T: Clone + Parser + CommandFactory + Serialize + Sized + 'static> Clone for PythonCommandOpts<T>
sourcefn clone(&self) -> PythonCommandOpts<T>
fn clone(&self) -> PythonCommandOpts<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Parser + CommandFactory + Serialize + Sized + 'static> RunnableCommand for PythonCommandOpts<T>
impl<T: Parser + CommandFactory + Serialize + Sized + 'static> RunnableCommand for PythonCommandOpts<T>
sourcefn cli_parser(&self) -> Command
fn cli_parser(&self) -> Command
The clap::Command that specifies the arguments and meta information.
sourcefn make_runnable(
&mut self,
args: &ArgMatches,
context: PuffContext
) -> PuffResult<Runnable>
fn make_runnable(
&mut self,
args: &ArgMatches,
context: PuffContext
) -> PuffResult<Runnable>
Converts parsed matches from the command line into a Runnable future.
Auto Trait Implementations
impl<T> RefUnwindSafe for PythonCommandOpts<T>where
T: RefUnwindSafe,
impl<T> Send for PythonCommandOpts<T>where
T: Send,
impl<T> Sync for PythonCommandOpts<T>where
T: Sync,
impl<T> Unpin for PythonCommandOpts<T>where
T: Unpin,
impl<T> UnwindSafe for PythonCommandOpts<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more