pub struct CanisterBuilder { /* private fields */ }Expand description
A builder for creating CanisterInfo.
Implementations§
Source§impl CanisterBuilder
impl CanisterBuilder
Sourcepub fn with_wasm_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_wasm_path(self, path: impl Into<PathBuf>) -> Self
Sets the Wasm path from a file path.
Sourcepub fn with_wasm_env(self, env_var: &str) -> Self
pub fn with_wasm_env(self, env_var: &str) -> Self
Sets the Wasm path from an environment variable.
Sourcepub fn with_init_args(self, args: Option<Vec<u8>>) -> Self
pub fn with_init_args(self, args: Option<Vec<u8>>) -> Self
Sets the initialization arguments for the canister.
Sourcepub fn as_coverage(self) -> Self
pub fn as_coverage(self) -> Self
Marks this canister as the coverage target.
Sourcepub fn as_support(self) -> Self
pub fn as_support(self) -> Self
Marks this canister as a support canister (default).
Sourcepub fn build(self) -> CanisterInfo
pub fn build(self) -> CanisterInfo
Auto Trait Implementations§
impl Forget for CanisterBuilder
impl Freeze for CanisterBuilder
impl Move for CanisterBuilder
impl RefUnwindSafe for CanisterBuilder
impl Send for CanisterBuilder
impl Sync for CanisterBuilder
impl Unpin for CanisterBuilder
impl UnsafeUnpin for CanisterBuilder
impl UnwindSafe for CanisterBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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