pub struct TransactionStrParams<'a> {Show 18 fields
pub secret_key: &'a str,
pub timestamp: &'a str,
pub ttl: &'a str,
pub chain_name: &'a str,
pub initiator_addr: String,
pub session_args_simple: Vec<&'a str>,
pub session_args_json: &'a str,
pub pricing_mode: &'a str,
pub additional_computation_factor: &'a str,
pub output_path: &'a str,
pub payment_amount: &'a str,
pub gas_price_tolerance: &'a str,
pub receipt: &'a str,
pub standard_payment: &'a str,
pub transferred_value: &'a str,
pub session_entry_point: Option<&'a str>,
pub chunked_args: Option<Vec<u8>>,
pub min_bid_override: bool,
}Expand description
Container for Transaction construction options.
§session_args_simple
For methods taking session_args_simple, this parameter is the session contract arguments, in
the form <NAME:TYPE='VALUE'> or <NAME:TYPE=null>.
There are further details in
the docs for the equivalent
payment_args_simple.
§session_args_json
For methods taking session_args_json, this parameter is the session contract arguments, as a
JSON-encoded Array of JSON Objects of the form:
[{"name":<String>,"type":<VALUE>,"value":<VALUE>}]There are further details in
the docs for the equivalent payment_args_json.
Fields§
§secret_key: &'a strPath to secret key file.
If secret_key is empty, the new transaction will not be signed and will need to be signed (e.g.
via sign_transaction_file) at least once in order to be made valid.
timestamp: &'a strRFC3339-like formatted timestamp. e.g. 2018-02-16T00:31:37Z.
If timestamp is empty, the current time will be used. Note that timestamp is UTC, not
local.
See humantime::parse_rfc3339_weak for more information.
ttl: &'a strTime that the transaction will remain valid for.
A transaction can only be included in a Block between timestamp and timestamp + ttl.
Input examples: ‘1hr 12min’, ‘30min 50sec’, ‘1day’.
See humantime::parse_duration for more information.
chain_name: &'a strName of the chain, to avoid the transaction from being accidentally or maliciously included in
a different chain.
initiator_addr: StringThe hex-encoded public key, account hash, or entity address of the account context under which the session code will be executed.
If initiator_addr is empty, the initiator address will be derived from the provided
secret_key. It is an error for both fields to be empty.
session_args_simple: Vec<&'a str>Simple session args for use in the transaction
session_args_json: &'a strSession args in json for use with the transaction
pricing_mode: &'a strThe pricing mode to use with the transaction
additional_computation_factor: &'a strUser-specified additional computation factor for “fixed” pricing_mode (minimum 0) if “0” is provided, no additional logic is applied to the computation limit.
output_path: &'a strThe optional output path for the transaction, if writing it to a file.
payment_amount: &'a strThe payment amount for executing the transaction
gas_price_tolerance: &'a strUser-specified gas_price tolerance.
receipt: &'a strThe digest of a previous transaction that represents the receipt for the current transaction.
standard_payment: &'a strStandard payment.
transferred_value: &'a strTransaferred value.
session_entry_point: Option<&'a str>The entry point for the session.
None means “call” (aka default) entry point.
chunked_args: Option<Vec<u8>>Chunked arguments for the transaction.
min_bid_override: boolWhether to override the minimum bid amount checks.
Trait Implementations§
Source§impl<'a> Clone for TransactionStrParams<'a>
impl<'a> Clone for TransactionStrParams<'a>
Source§fn clone(&self) -> TransactionStrParams<'a>
fn clone(&self) -> TransactionStrParams<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for TransactionStrParams<'a>
impl<'a> Debug for TransactionStrParams<'a>
Source§impl<'a> Default for TransactionStrParams<'a>
impl<'a> Default for TransactionStrParams<'a>
Source§fn default() -> TransactionStrParams<'a>
fn default() -> TransactionStrParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for TransactionStrParams<'a>
impl<'a> RefUnwindSafe for TransactionStrParams<'a>
impl<'a> Send for TransactionStrParams<'a>
impl<'a> Sync for TransactionStrParams<'a>
impl<'a> Unpin for TransactionStrParams<'a>
impl<'a> UnwindSafe for TransactionStrParams<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more