pub struct ExecuteCommand {
pub input: String,
pub input_type: InputType,
pub version: Option<u8>,
pub mode: ExecutionMode,
pub budget: u64,
pub step: bool,
pub ledger: Option<PathBuf>,
pub transaction: Option<PathBuf>,
pub args: Vec<String>,
}Expand description
Execute command for running TEAL programs
Fields§
§input: StringInput source (file path, hex bytecode, or inline TEAL)
input_type: InputTypeInput type (auto-detect, file, bytecode, inline)
version: Option<u8>TEAL version to use
mode: ExecutionModeExecution mode (signature or application)
budget: u64Maximum cost budget
step: boolStep through execution (debug mode)
ledger: Option<PathBuf>Mock ledger data from JSON file
transaction: Option<PathBuf>Transaction data from JSON file
args: Vec<String>Arguments to pass to the program
Trait Implementations§
Source§impl Args for ExecuteCommand
impl Args for ExecuteCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for ExecuteCommand
impl CommandFactory for ExecuteCommand
Source§impl FromArgMatches for ExecuteCommand
impl FromArgMatches for ExecuteCommand
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 Parser for ExecuteCommand
impl Parser for ExecuteCommand
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)
Auto Trait Implementations§
impl Freeze for ExecuteCommand
impl RefUnwindSafe for ExecuteCommand
impl Send for ExecuteCommand
impl Sync for ExecuteCommand
impl Unpin for ExecuteCommand
impl UnsafeUnpin for ExecuteCommand
impl UnwindSafe for ExecuteCommand
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