pub struct ContractExecuteTransaction { /* private fields */ }
Implementations§
Source§impl ContractExecuteTransaction
impl ContractExecuteTransaction
pub fn schedule(&mut self) -> Result<ScheduleCreateTransaction, HederaError>
Source§impl ContractExecuteTransaction
impl ContractExecuteTransaction
pub async fn add_signature( &mut self, public_key: PublicKey, signature: Signature, ) -> Result<&mut Self, HederaError>
pub fn signatures( &self, ) -> Result<HashMap<AccountId, HashMap<PublicKey, Vec<u8>>>, HederaError>
pub fn sign( &mut self, private_key: &PrivateKey, ) -> Result<&mut Self, HederaError>
pub fn sign_with<F: Fn(&Vec<u8>) -> Signature>( &mut self, public_key: &PublicKey, signer: F, ) -> Result<&mut Self, HederaError>
pub async fn sign_with_operator( &mut self, client: &Client, ) -> Result<&mut Self, HederaError>
pub fn is_frozen(&self) -> bool
pub async fn freeze(&mut self) -> Result<&mut Self, HederaError>
pub fn to_bytes(&mut self) -> Result<Vec<u8>, HederaError>
pub fn transaction_hash(&mut self) -> Result<Vec<u8>, HederaError>
pub fn max_transaction_fee(&self) -> Hbar
pub fn set_max_transaction_fee( &mut self, fee: Hbar, ) -> Result<&mut Self, HederaError>
pub fn transaction_memo(&self) -> String
pub fn set_transaction_memo( &mut self, memo: String, ) -> Result<&mut Self, HederaError>
pub fn transaction_valid_duration(&self) -> Option<Duration>
pub fn set_transaction_valid_duration( &mut self, duration: Option<Duration>, ) -> Result<&mut Self, HederaError>
pub fn transaction_id(&self) -> Result<TransactionId, HederaError>
pub fn set_transaction_id( &mut self, transaction_id: TransactionId, ) -> Result<&mut Self, HederaError>
pub fn node_account_ids(&self) -> Vec<AccountId>
pub fn set_node_account_ids( &mut self, node_ids: Vec<AccountId>, ) -> Result<&mut Self, HederaError>
pub fn set_max_retry(&mut self, max_retry: u8) -> Result<&mut Self, HederaError>
pub fn set_min_backoff( &mut self, backoff: u64, ) -> Result<&mut Self, HederaError>
pub fn set_max_backoff( &mut self, backoff: u64, ) -> Result<&mut Self, HederaError>
Source§impl ContractExecuteTransaction
impl ContractExecuteTransaction
pub async fn freeze_with( &mut self, client: Option<&Client>, ) -> Result<&mut Self, HederaError>
pub async fn execute_async( &mut self, client: &Client, ) -> Result<IntermediateResponse, HederaError>
Source§impl ContractExecuteTransaction
impl ContractExecuteTransaction
pub async fn execute( &mut self, client: &Client, ) -> Result<TransactionResponse, HederaError>
Source§impl ContractExecuteTransaction
impl ContractExecuteTransaction
pub fn new() -> ContractExecuteTransaction
pub fn contract_id(&self) -> Result<ContractId, HederaError>
pub fn set_contract_id( &mut self, contract_id: ContractId, ) -> Result<&mut Self, HederaError>
pub fn gas(&self) -> u64
pub fn set_gas(&mut self, gas: u64) -> Result<&mut Self, HederaError>
pub fn payable_amount(&self) -> Hbar
pub fn set_payable_amount( &mut self, amount: Hbar, ) -> Result<&mut Self, HederaError>
pub fn function_parameters(&self) -> Result<Vec<u8>, HederaError>
pub fn set_function_parameters( &mut self, function_parameters: Vec<u8>, ) -> Result<&mut Self, HederaError>
pub fn set_function( &mut self, params: ContractFunctionParameters, ) -> Result<&mut Self, HederaError>
Trait Implementations§
Source§impl Clone for ContractExecuteTransaction
impl Clone for ContractExecuteTransaction
Source§fn clone(&self) -> ContractExecuteTransaction
fn clone(&self) -> ContractExecuteTransaction
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 Debug for ContractExecuteTransaction
impl Debug for ContractExecuteTransaction
Source§impl Default for ContractExecuteTransaction
impl Default for ContractExecuteTransaction
Source§impl Display for ContractExecuteTransaction
impl Display for ContractExecuteTransaction
impl StructuralPartialEq for ContractExecuteTransaction
Auto Trait Implementations§
impl Freeze for ContractExecuteTransaction
impl RefUnwindSafe for ContractExecuteTransaction
impl Send for ContractExecuteTransaction
impl Sync for ContractExecuteTransaction
impl Unpin for ContractExecuteTransaction
impl UnwindSafe for ContractExecuteTransaction
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
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request