pub struct PackageManifest {
pub contents: PackageManifestFile,
/* private fields */
}
Fields§
§contents: PackageManifestFile
Implementations§
source§impl PackageManifest
impl PackageManifest
pub fn get_dependency_version<S>(&self, dependency: S) -> Option<String>where
S: AsRef<str>,
pub fn internal_dependencies_iter<'a>(
&'a self,
package_manifests_by_package_name: &'a HashMap<String, PackageManifest>
) -> impl Iterator<Item = &'a PackageManifest>
pub fn transitive_internal_dependency_package_names_exclusive<'a>(
&self,
package_manifest_by_package_name: &'a HashMap<String, PackageManifest>
) -> Vec<&'a PackageManifest> ⓘ
pub fn get_dependency_group_mut(
&mut self,
group: &DependencyGroup
) -> Option<&mut Map<String, Value>>
pub fn npm_pack_file_basename(&self) -> String
pub fn unscoped_package_name(&self) -> &str
Trait Implementations§
source§impl AsRef<PackageManifest> for PackageManifest
impl AsRef<PackageManifest> for PackageManifest
source§impl Clone for PackageManifest
impl Clone for PackageManifest
source§fn clone(&self) -> PackageManifest
fn clone(&self) -> PackageManifest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConfigurationFile<PackageManifest> for PackageManifest
impl ConfigurationFile<PackageManifest> for PackageManifest
source§fn from_directory(
monorepo_root: &Path,
directory: &Path
) -> Result<PackageManifest>
fn from_directory(
monorepo_root: &Path,
directory: &Path
) -> Result<PackageManifest>
Create an instance of this configuration file by reading
the specified file from this directory on disk.