pub struct PackageEnvInputs<'a> {
pub manifest_dir: &'a Path,
pub manifest_path: &'a Path,
pub package_name: &'a str,
pub package_version: &'a str,
pub profile: &'a str,
pub build_dir: &'a Path,
}Expand description
Inputs for package_env. The orchestration layer fills
this in from already-resolved typed values. cabin run and
cabin test use the same shape — the injected overlay does
not depend on whether the target is a binary or a test.
Fields§
§manifest_dir: &'a PathManifest directory of the package owning the target.
manifest_path: &'a Pathcabin.toml path of the package owning the target.
package_name: &'a strPackage name as the manifest declared it.
package_version: &'a strResolved package version.
profile: &'a strResolved profile name (dev, release, …).
build_dir: &'a PathResolved build directory.
Trait Implementations§
Source§impl<'a> Clone for PackageEnvInputs<'a>
impl<'a> Clone for PackageEnvInputs<'a>
Source§fn clone(&self) -> PackageEnvInputs<'a>
fn clone(&self) -> PackageEnvInputs<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for PackageEnvInputs<'a>
impl<'a> RefUnwindSafe for PackageEnvInputs<'a>
impl<'a> Send for PackageEnvInputs<'a>
impl<'a> Sync for PackageEnvInputs<'a>
impl<'a> Unpin for PackageEnvInputs<'a>
impl<'a> UnsafeUnpin for PackageEnvInputs<'a>
impl<'a> UnwindSafe for PackageEnvInputs<'a>
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