pub struct SetDeployActionBuilder {
contract: AccountId,
deploy_action: Action,
}Fields§
§contract: AccountId§deploy_action: ActionImplementations§
Source§impl SetDeployActionBuilder
impl SetDeployActionBuilder
pub const fn new(contract: AccountId, deploy_action: Action) -> Self
Sourcepub fn without_init_call(self) -> ConstructTransaction
pub fn without_init_call(self) -> ConstructTransaction
Prepares a transaction to deploy a contract to the provided account without an init call.
This will deploy the contract without calling any function.
Sourcepub fn with_init_call<Args: Serialize>(
self,
method_name: &str,
args: Args,
) -> Result<SetDeployActionWithInitCallBuilder, BuilderError>
pub fn with_init_call<Args: Serialize>( self, method_name: &str, args: Args, ) -> Result<SetDeployActionWithInitCallBuilder, BuilderError>
Prepares a transaction to deploy a contract to the provided account with an init call.
This will deploy the contract and call the init function with the provided arguments as a single transaction.
Trait Implementations§
Source§impl Clone for SetDeployActionBuilder
impl Clone for SetDeployActionBuilder
Source§fn clone(&self) -> SetDeployActionBuilder
fn clone(&self) -> SetDeployActionBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 SetDeployActionBuilder
impl Debug for SetDeployActionBuilder
Source§impl<'de> Deserialize<'de> for SetDeployActionBuilder
impl<'de> Deserialize<'de> for SetDeployActionBuilder
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 SetDeployActionBuilder
impl PartialEq for SetDeployActionBuilder
Source§impl Serialize for SetDeployActionBuilder
impl Serialize for SetDeployActionBuilder
impl Eq for SetDeployActionBuilder
impl StructuralPartialEq for SetDeployActionBuilder
Auto Trait Implementations§
impl Freeze for SetDeployActionBuilder
impl RefUnwindSafe for SetDeployActionBuilder
impl Send for SetDeployActionBuilder
impl Sync for SetDeployActionBuilder
impl Unpin for SetDeployActionBuilder
impl UnwindSafe for SetDeployActionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.