pub struct DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,{
pub code_source: CodeSource,
pub code_metadata: CodeMetadata,
pub arg_buffer: ManagedArgBuffer<Env::Api>,
}
Expand description
Holds deploy data: code, code metadata, and arguments.
Fields§
§code_source: CodeSource
§code_metadata: CodeMetadata
§arg_buffer: ManagedArgBuffer<Env::Api>
Implementations§
Source§impl<Env> DeployCall<Env, ()>where
Env: TxEnv,
impl<Env> DeployCall<Env, ()>where
Env: TxEnv,
pub fn code_source<CodeSource>(
self,
code_source: CodeSource,
) -> DeployCall<Env, CodeSource>where
CodeSource: TxCodeSource<Env>,
Source§impl<Env, CodeSource> DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,
impl<Env, CodeSource> DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,
pub fn code_metadata(self, code_metadata: CodeMetadata) -> Selfwhere
CodeSource: TxCodeSource<Env>,
Sourcepub fn argument<T: TopEncodeMulti>(self, arg: &T) -> Self
pub fn argument<T: TopEncodeMulti>(self, arg: &T) -> Self
Adds an argument of any serializable type.
Multi-values are accepted. No type checking performed.
pub fn arguments_raw(self, raw: ManagedArgBuffer<Env::Api>) -> Self
Trait Implementations§
Source§impl<Env, CodeSource> TxData<Env> for DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,
impl<Env, CodeSource> TxData<Env> for DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,
fn is_no_call(&self) -> bool
fn to_call_data_string(&self) -> ManagedBuffer<Env::Api>
Auto Trait Implementations§
impl<Env, CodeSource> Freeze for DeployCall<Env, CodeSource>
impl<Env, CodeSource> RefUnwindSafe for DeployCall<Env, CodeSource>where
CodeSource: RefUnwindSafe,
<<Env as TxEnv>::Api as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
impl<Env, CodeSource> Send for DeployCall<Env, CodeSource>
impl<Env, CodeSource> Sync for DeployCall<Env, CodeSource>
impl<Env, CodeSource> Unpin for DeployCall<Env, CodeSource>
impl<Env, CodeSource> UnwindSafe for DeployCall<Env, CodeSource>where
CodeSource: UnwindSafe,
<<Env as TxEnv>::Api as HandleTypeInfo>::ManagedBufferHandle: UnwindSafe,
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