pub struct WorkspaceBuildContext {
pub role: String,
pub profile: CanisterBuildProfile,
pub environment: String,
pub build_network: String,
pub workspace_root: PathBuf,
pub icp_root: PathBuf,
pub config_path: PathBuf,
pub local_replica: Option<LocalReplicaTarget>,
pub refresh_canonical_wasm_store_did: bool,
}Expand description
Exact authority for one canister artifact build.
Fields§
§role: String§profile: CanisterBuildProfile§environment: String§build_network: String§workspace_root: PathBuf§icp_root: PathBuf§config_path: PathBuf§local_replica: Option<LocalReplicaTarget>§refresh_canonical_wasm_store_did: boolImplementations§
Source§impl WorkspaceBuildContext
impl WorkspaceBuildContext
pub fn lines(&self) -> Vec<String>
Sourcepub fn with_profile(&self, profile: CanisterBuildProfile) -> Self
pub fn with_profile(&self, profile: CanisterBuildProfile) -> Self
Return a copy using a different Cargo profile for one child build.
Sourcepub fn with_role(&self, role: impl Into<String>) -> Self
pub fn with_role(&self, role: impl Into<String>) -> Self
Return a copy selecting another role in the same workspace authority.
Sourcepub fn apply_to_command(&self, command: &mut Command)
pub fn apply_to_command(&self, command: &mut Command)
Apply the exact Canic build authority to one child command.
Trait Implementations§
Source§impl Clone for WorkspaceBuildContext
impl Clone for WorkspaceBuildContext
Source§fn clone(&self) -> WorkspaceBuildContext
fn clone(&self) -> WorkspaceBuildContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceBuildContext
impl Debug for WorkspaceBuildContext
impl Eq for WorkspaceBuildContext
Source§impl PartialEq for WorkspaceBuildContext
impl PartialEq for WorkspaceBuildContext
impl StructuralPartialEq for WorkspaceBuildContext
Auto Trait Implementations§
impl Freeze for WorkspaceBuildContext
impl RefUnwindSafe for WorkspaceBuildContext
impl Send for WorkspaceBuildContext
impl Sync for WorkspaceBuildContext
impl Unpin for WorkspaceBuildContext
impl UnsafeUnpin for WorkspaceBuildContext
impl UnwindSafe for WorkspaceBuildContext
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> 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.