Struct sweet_cli::sweet_cli::command::SweetCommand
source · pub struct SweetCommand;Trait Implementations§
source§impl Subcommand for SweetCommand
impl Subcommand for SweetCommand
fn name(&self) -> &'static str
fn about(&self) -> &'static str
fn append_command(&self, command: Command) -> Command
fn run(&self, args: &ArgMatches) -> Result<()>
fn version(&self) -> &'static str
fn create_command(&self) -> Command
fn subcommands(&self) -> Vec<Box<dyn Subcommand>>
fn run_with_str(&self, args: String) -> Result<(), Error>
fn run_with_cli_args(&self) -> Result<(), Error>
fn run_subs_or_default(&self, args: &ArgMatches) -> Result<(), Error>
fn run_loop(&self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for SweetCommand
impl RefUnwindSafe for SweetCommand
impl Send for SweetCommand
impl Sync for SweetCommand
impl Unpin for SweetCommand
impl UnwindSafe for SweetCommand
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more