Trait Deployer

Source
pub trait Deployer {
    type Caller: Caller;

    // Required method
    fn deploy<Canister>(
        &self,
        args: Result<Vec<u8>, Error>,
        new: fn(&Self::Caller, Principal) -> Canister,
    ) -> DeployBuilder<Canister, Self::Caller>;
}
Expand description

A type capable of deploying canisters with arguments and lifecycle control.

Implementors typically use DeployBuilder to configure and execute deployment logic.

Required Associated Types§

Required Methods§

Source

fn deploy<Canister>( &self, args: Result<Vec<u8>, Error>, new: fn(&Self::Caller, Principal) -> Canister, ) -> DeployBuilder<Canister, Self::Caller>

Begins a canister deployment sequence with the given candid-encoded args and a constructor function for your strongly-typed client.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§