pub struct DeployCall<Env, CodeSource>where
Env: TxEnv,
CodeSource: TxCodeSource<Env>,{
pub code_source: CodeSource,
pub code_metadata: CodeMetadata,
pub arg_buffer: ManagedArgBuffer<<Env as TxEnv>::Api>,
}
Expand description
Holds deploy data: code, code metadata, and arguments.
Fields§
§code_source: CodeSource
§code_metadata: CodeMetadata
§arg_buffer: ManagedArgBuffer<<Env as TxEnv>::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,
) -> DeployCall<Env, CodeSource>where
CodeSource: TxCodeSource<Env>,
Sourcepub fn argument<T>(self, arg: &T) -> DeployCall<Env, CodeSource>where
T: TopEncodeMulti,
pub fn argument<T>(self, arg: &T) -> DeployCall<Env, CodeSource>where
T: TopEncodeMulti,
Adds an argument of any serializable type.
Multi-values are accepted. No type checking performed.
pub fn arguments_raw( self, raw: ManagedArgBuffer<<Env as TxEnv>::Api>, ) -> DeployCall<Env, CodeSource>
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 as TxEnv>::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
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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 more