Struct ink_env::call::CreateParams
source · [−]pub struct CreateParams<E, Args, Salt, R> where
E: Environment, { /* private fields */ }
Expand description
Builds up contract instantiations.
Implementations
sourceimpl<E, Args, Salt, R> CreateParams<E, Args, Salt, R> where
E: Environment,
Args: Encode,
Salt: AsRef<[u8]>,
R: FromAccountId<E>,
impl<E, Args, Salt, R> CreateParams<E, Args, Salt, R> where
E: Environment,
Args: Encode,
Salt: AsRef<[u8]>,
R: FromAccountId<E>,
sourcepub fn instantiate(&self) -> Result<R, Error>
pub fn instantiate(&self) -> Result<R, Error>
Instantiates the contract and returns its account ID back to the caller.
Trait Implementations
Auto Trait Implementations
impl<E, Args, Salt, R> RefUnwindSafe for CreateParams<E, Args, Salt, R> where
Args: RefUnwindSafe,
Salt: RefUnwindSafe,
<E as Environment>::Balance: RefUnwindSafe,
<E as Environment>::Hash: RefUnwindSafe,
impl<E, Args, Salt, R> Send for CreateParams<E, Args, Salt, R> where
Args: Send,
Salt: Send,
<E as Environment>::Balance: Send,
<E as Environment>::Hash: Send,
impl<E, Args, Salt, R> Sync for CreateParams<E, Args, Salt, R> where
Args: Sync,
Salt: Sync,
<E as Environment>::Balance: Sync,
<E as Environment>::Hash: Sync,
impl<E, Args, Salt, R> Unpin for CreateParams<E, Args, Salt, R> where
Args: Unpin,
Salt: Unpin,
<E as Environment>::Balance: Unpin,
<E as Environment>::Hash: Unpin,
impl<E, Args, Salt, R> UnwindSafe for CreateParams<E, Args, Salt, R> where
Args: UnwindSafe,
Salt: UnwindSafe,
<E as Environment>::Balance: UnwindSafe,
<E as Environment>::Hash: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more