Struct terra_rust_cli::cli_helpers::Cli
source · [−]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
sourceimpl<T: FromArgMatches + Subcommand> Cli<T>
impl<T: FromArgMatches + Subcommand> Cli<T>
pub async fn gas_opts(&self) -> Result<GasOptions, TerraRustCLIError>
Trait Implementations
sourceimpl<T: FromArgMatches + Subcommand> Args for Cli<T>
impl<T: FromArgMatches + Subcommand> Args for Cli<T>
sourceimpl<T: FromArgMatches + Subcommand> CommandFactory for Cli<T>
impl<T: FromArgMatches + Subcommand> CommandFactory for Cli<T>
sourcefn into_app<'b>() -> Command<'b>
fn into_app<'b>() -> Command<'b>
👎 Deprecated since 3.1.0:
Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
👎 Deprecated since 3.1.0:
Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl<T: FromArgMatches + Subcommand> FromArgMatches for Cli<T>
impl<T: FromArgMatches + Subcommand> FromArgMatches for Cli<T>
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn 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
.
sourceimpl<T: FromArgMatches + Subcommand> Parser for Cli<T>
impl<T: FromArgMatches + Subcommand> Parser for Cli<T>
sourcefn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more