pub struct ContractCallData {
pub contract: Address,
pub method: String,
pub args: Vec<u8>,
pub value: Balance,
pub gas_limit: u64,
}Expand description
Smart contract call data
Fields§
§contract: AddressContract address to call
method: StringMethod name to call
args: Vec<u8>Method arguments (serialized)
value: BalanceKoppa to send with call
gas_limit: u64Gas limit for call
Trait Implementations§
Source§impl Clone for ContractCallData
impl Clone for ContractCallData
Source§fn clone(&self) -> ContractCallData
fn clone(&self) -> ContractCallData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContractCallData
impl Debug for ContractCallData
Source§impl<'de> Deserialize<'de> for ContractCallData
impl<'de> Deserialize<'de> for ContractCallData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContractCallData
impl PartialEq for ContractCallData
Source§fn eq(&self, other: &ContractCallData) -> bool
fn eq(&self, other: &ContractCallData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContractCallData
impl Serialize for ContractCallData
impl Eq for ContractCallData
impl StructuralPartialEq for ContractCallData
Auto Trait Implementations§
impl Freeze for ContractCallData
impl RefUnwindSafe for ContractCallData
impl Send for ContractCallData
impl Sync for ContractCallData
impl Unpin for ContractCallData
impl UnsafeUnpin for ContractCallData
impl UnwindSafe for ContractCallData
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