Struct mun_project::Manifest
source · pub struct Manifest { /* private fields */ }
Expand description
Contains all information of a package. Usually this information is read from a mun.toml file.
Implementations§
source§impl Manifest
impl Manifest
sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Manifest, Error>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Manifest, Error>
Try to read a manifest from a file
sourcepub fn package_id(&self) -> &PackageId
pub fn package_id(&self) -> &PackageId
Returns the unique identifier of this manifest based on the name and version
sourcepub fn metadata(&self) -> &ManifestMetadata
pub fn metadata(&self) -> &ManifestMetadata
Returns the metadata information of the package