pub struct ContractDeployData {
pub code: Vec<u8>,
pub init_method: String,
pub init_args: Vec<u8>,
pub value: Balance,
pub gas_limit: u64,
}Expand description
Smart contract deployment data
Fields§
§code: Vec<u8>WASM bytecode
init_method: StringInit method name (usually “new” or “init”)
init_args: Vec<u8>Init method arguments (serialized)
value: BalanceInitial Koppa to send to contract
gas_limit: u64Gas limit for deployment
Trait Implementations§
Source§impl Clone for ContractDeployData
impl Clone for ContractDeployData
Source§fn clone(&self) -> ContractDeployData
fn clone(&self) -> ContractDeployData
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 ContractDeployData
impl Debug for ContractDeployData
Source§impl<'de> Deserialize<'de> for ContractDeployData
impl<'de> Deserialize<'de> for ContractDeployData
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 ContractDeployData
impl PartialEq for ContractDeployData
Source§fn eq(&self, other: &ContractDeployData) -> bool
fn eq(&self, other: &ContractDeployData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContractDeployData
impl Serialize for ContractDeployData
impl Eq for ContractDeployData
impl StructuralPartialEq for ContractDeployData
Auto Trait Implementations§
impl Freeze for ContractDeployData
impl RefUnwindSafe for ContractDeployData
impl Send for ContractDeployData
impl Sync for ContractDeployData
impl Unpin for ContractDeployData
impl UnsafeUnpin for ContractDeployData
impl UnwindSafe for ContractDeployData
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