pub struct DeployBuilder<Canister, C: Caller> {
pub provider: C::Provider,
pub caller: C,
pub canister_id: Option<Principal>,
pub mode: DeployMode,
pub settings: CanisterSettings,
pub cycles: u128,
pub wasm: Vec<u8>,
pub args: Result<Vec<u8>, Error>,
pub new: fn(&C, Principal) -> Canister,
}Fields§
§provider: C::Provider§caller: C§canister_id: Option<Principal>§mode: DeployMode§settings: CanisterSettings§cycles: u128§wasm: Vec<u8>§args: Result<Vec<u8>, Error>§new: fn(&C, Principal) -> CanisterImplementations§
Source§impl<Canister, C: Caller> DeployBuilder<Canister, C>
impl<Canister, C: Caller> DeployBuilder<Canister, C>
pub fn with_canister_id(self, canister_id: Principal) -> Self
pub fn with_controllers(self, controllers: Vec<Principal>) -> Self
pub fn with_cycles(self, cycles: u128) -> Self
pub fn with_settings(self, settings: CanisterSettings) -> Self
pub fn with_wasm(self, wasm: Vec<u8>) -> Self
pub fn with_install(self) -> Self
pub fn with_upgrade(self) -> Self
pub fn with_reinstall(self) -> Self
pub async fn maybe_call(self) -> Result<Canister, DeployError>
pub async fn call(self) -> Canister
Auto Trait Implementations§
impl<Canister, C> Freeze for DeployBuilder<Canister, C>
impl<Canister, C> RefUnwindSafe for DeployBuilder<Canister, C>
impl<Canister, C> Send for DeployBuilder<Canister, C>
impl<Canister, C> Sync for DeployBuilder<Canister, C>
impl<Canister, C> Unpin for DeployBuilder<Canister, C>
impl<Canister, C> UnwindSafe for DeployBuilder<Canister, C>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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