Struct seaplane_cli::cli::cmds::locks::SeaplaneLocksAcquire
source · pub struct SeaplaneLocksAcquire;Expand description
A newtype wrapper to enforce where the ArgMatches came from which reduces errors in checking if
values of arguments were used or not. i.e. seaplane locks acquire may not have the same
arguments as seaplane account token even though both produce an ArgMatches.
Implementations§
Trait Implementations§
source§impl CliCommand for SeaplaneLocksAcquire
impl CliCommand for SeaplaneLocksAcquire
fn run(&self, ctx: &mut Ctx) -> Result<()>
source§fn update_ctx(&self, matches: &ArgMatches, ctx: &mut Ctx) -> Result<()>
fn update_ctx(&self, matches: &ArgMatches, ctx: &mut Ctx) -> Result<()>
Care should be taken to keep CliCommand::update_ctx pure with no external effects such as
I/O. This allows the CLI to be fully tested without any assumptions of the testing
environment
fn next_subcmd<'a>( &self, _matches: &'a ArgMatches ) -> Option<(Box<dyn CliCommand>, &'a ArgMatches)>
source§impl Clone for SeaplaneLocksAcquire
impl Clone for SeaplaneLocksAcquire
source§fn clone(&self) -> SeaplaneLocksAcquire
fn clone(&self) -> SeaplaneLocksAcquire
Returns a copy 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 more