pub struct TransactionOptions<'a> { /* private fields */ }Expand description
Transaction parameter option
Implementations§
Source§impl<'a> TransactionOptions<'a>
impl<'a> TransactionOptions<'a>
Sourcepub fn set_address(self, address: &'a str) -> Self
pub fn set_address(self, address: &'a str) -> Self
Set address. Destination address (account or contract address), default is “0x”, which creates the contract
Sourcepub fn set_current_height(self, height: Option<u64>) -> Self
pub fn set_current_height(self, height: Option<u64>) -> Self
Set current height. Used to set until_block. Set the current chain height, the default is None, automatically query before the transaction to get the current chain height
Sourcepub fn current_height(&self) -> Option<u64>
pub fn current_height(&self) -> Option<u64>
Get current height
Sourcepub fn set_quota(self, quota: Option<u64>) -> Self
pub fn set_quota(self, quota: Option<u64>) -> Self
Set quota. Transaction consumption quota limit
Sourcepub fn set_version(self, version: Option<u32>) -> Self
pub fn set_version(self, version: Option<u32>) -> Self
Set version.
Sourcepub fn set_sender(self, address: &'a str) -> Self
pub fn set_sender(self, address: &'a str) -> Self
Set sender. Sender account address, default is none, which use default account
Trait Implementations§
Source§impl<'a> Clone for TransactionOptions<'a>
impl<'a> Clone for TransactionOptions<'a>
Source§fn clone(&self) -> TransactionOptions<'a>
fn clone(&self) -> TransactionOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TransactionOptions<'a>
impl<'a> Debug for TransactionOptions<'a>
Source§impl Default for TransactionOptions<'static>
impl Default for TransactionOptions<'static>
impl<'a> Copy for TransactionOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for TransactionOptions<'a>
impl<'a> RefUnwindSafe for TransactionOptions<'a>
impl<'a> Send for TransactionOptions<'a>
impl<'a> Sync for TransactionOptions<'a>
impl<'a> Unpin for TransactionOptions<'a>
impl<'a> UnwindSafe for TransactionOptions<'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
Mutably borrows from an owned value. Read more