pub struct Manifest {
pub name: String,
pub version: Version,
pub target: PackageTarget,
pub manifest_dir: PathBuf,
pub manifest_path: PathBuf,
}Expand description
A successfully loaded and validated manifest.
Fields§
§name: StringDisplay name (name field).
version: VersionSemver version (version field).
target: PackageTargetThe package target — either binary or library.
manifest_dir: PathBufDirectory containing the manifest (its parent).
manifest_path: PathBufAbsolute path of the manifest file itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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