Struct aptos_move_run::AptosMoveRunTool
source · [−]pub struct AptosMoveRunTool {
pub txn_options: TransactionOptions,
pub function_id: FunctionId,
pub args: Vec<ArgWithType>,
pub type_args: Vec<MoveType>,
}Expand description
Run an arbitrary Move command.
Fields
txn_options: TransactionOptionsfunction_id: FunctionIdFunction name as <ADDRESS>::<MODULE_ID>::<FUNCTION_NAME>
Example: 0x842ed41fad9640a2ad08fdd7d3e4f7f505319aac7d67e1c0dd6a7cce8732c7e3::Message::set_message
args: Vec<ArgWithType>Hex encoded arguments separated by spaces.
Example: 0x01 0x02 0x03
type_args: Vec<MoveType>TypeTag arguments separated by spaces.
Example: u8 u64 u128 bool address vector true false signer
Trait Implementations
sourceimpl Args for AptosMoveRunTool
impl Args for AptosMoveRunTool
sourceimpl CliTool<TransactionSummary> for AptosMoveRunTool
impl CliTool<TransactionSummary> for AptosMoveRunTool
sourcefn execute<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<TransactionSummary>> + Send + 'async_trait>> where
Self: 'async_trait,
fn execute<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<TransactionSummary>> + Send + 'async_trait>> where
Self: 'async_trait,
Executes the command, returning a command specific type
sourcefn execute_serialized<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait, Global>> where
Self: 'async_trait,
fn execute_serialized<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait, Global>> where
Self: 'async_trait,
Executes the command, and serializes it to the common JSON output type
sourceimpl CommandFactory for AptosMoveRunTool
impl CommandFactory for AptosMoveRunTool
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with CommandFactory::command_for_update
sourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for AptosMoveRunTool
impl Debug for AptosMoveRunTool
sourceimpl FromArgMatches for AptosMoveRunTool
impl FromArgMatches for AptosMoveRunTool
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 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>
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.
sourcefn 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.
sourceimpl Parser for AptosMoveRunTool
impl Parser for AptosMoveRunTool
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 RefUnwindSafe for AptosMoveRunTool
impl Send for AptosMoveRunTool
impl Sync for AptosMoveRunTool
impl Unpin for AptosMoveRunTool
impl UnwindSafe for AptosMoveRunTool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
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<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
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