pub struct Cli<T: FromArgMatches + Subcommand> {
pub lcd: String,
pub fcd: String,
pub chain_id: String,
pub wallet: String,
pub seed: String,
pub fees: String,
pub gas: String,
pub gas_price: String,
pub gas_price_denom: String,
pub gas_adjustment: f64,
pub debug: AtomicBool,
pub cmd: T,
}
Expand description
your terra swiss army knife
Fields§
§lcd: String
§fcd: String
§chain_id: String
§wallet: String
§seed: String
§fees: String
§gas: String
§gas_price: String
§gas_price_denom: String
§gas_adjustment: f64
§debug: AtomicBool
§cmd: T
Implementations§
Source§impl<T: FromArgMatches + Subcommand> Cli<T>
impl<T: FromArgMatches + Subcommand> Cli<T>
pub async fn gas_opts(&self) -> Result<GasOptions, TerraRustCLIError>
Trait Implementations§
Source§impl<T: FromArgMatches + Subcommand> Args for Cli<T>
impl<T: FromArgMatches + Subcommand> Args for Cli<T>
Source§impl<T: FromArgMatches + Subcommand> CommandFactory for Cli<T>
impl<T: FromArgMatches + Subcommand> CommandFactory for Cli<T>
Source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
Source§impl<T: FromArgMatches + Subcommand> FromArgMatches for Cli<T>
impl<T: FromArgMatches + Subcommand> FromArgMatches for Cli<T>
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl<T: FromArgMatches + Subcommand> Parser for Cli<T>
impl<T: FromArgMatches + Subcommand> Parser for Cli<T>
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Auto Trait Implementations§
impl<T> !Freeze for Cli<T>
impl<T> RefUnwindSafe for Cli<T>where
T: RefUnwindSafe,
impl<T> Send for Cli<T>where
T: Send,
impl<T> Sync for Cli<T>where
T: Sync,
impl<T> Unpin for Cli<T>where
T: Unpin,
impl<T> UnwindSafe for Cli<T>where
T: UnwindSafe,
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