pub enum DatasourceId {
Show 159 variants
AboutFile,
Readme,
EtcOsRelease,
AlpineApkArchive,
AlpineApkbuild,
AlpineInstalledDb,
ArchAurinfo,
ArchPkginfo,
ArchSrcinfo,
AndroidAarLibrary,
AndroidApk,
Axis2Mar,
Axis2ModuleXml,
AutotoolsConfigure,
BazelBuild,
BazelModule,
BowerJson,
BuckFile,
BuckMetadata,
BunLock,
BunLockb,
CargoLock,
CargoToml,
ChefCookbookMetadataJson,
ChefCookbookMetadataRb,
CocoapodsPodfile,
CocoapodsPodfileLock,
CocoapodsPodspec,
CocoapodsPodspecJson,
ConanConanDataYml,
ConanConanFilePy,
ConanConanFileTxt,
ConanLock,
CondaYaml,
CondaMetaJson,
CondaMetaYaml,
ClojureDepsEdn,
ClojureProjectClj,
CpanDistIni,
CpanMakefile,
CpanManifest,
CpanMetaJson,
CpanMetaYml,
CranDescription,
PubspecLock,
PubspecYaml,
DebianControlExtractedDeb,
DebianControlInSource,
DebianCopyright,
DebianDeb,
DebianSourceMetadataTarball,
DebianDistrolessInstalledDb,
DebianInstalledFilesList,
DebianInstalledMd5Sums,
DebianInstalledStatusDb,
DebianMd5SumsInExtractedDeb,
DebianOriginalSourceTarball,
DebianSourceControlDsc,
DenoJson,
DenoLock,
Dockerfile,
FreebsdCompactManifest,
Godeps,
GoMod,
GoModGraph,
GoSum,
GoWork,
HackageCabal,
HackageCabalProject,
HackageStackYaml,
BuildGradle,
GradleLockfile,
GradleModule,
HaxelibJson,
HelmChartLock,
HelmChartYaml,
HexMixLock,
AntIvyXml,
JavaEarApplicationXml,
JavaEarArchive,
JavaJar,
JavaJarManifest,
JavaOsgiManifest,
JavaWarArchive,
JavaWarWebXml,
JbossSar,
JbossServiceXml,
MavenPom,
MavenPomProperties,
MesonBuild,
SbtBuildSbt,
MicrosoftCabinet,
MicrosoftUpdateManifestMum,
AppleDmg,
ChromeCrx,
IosIpa,
MozillaXpi,
MeteorPackage,
NpmPackageJson,
NpmPackageLockJson,
NugetCsproj,
NugetDepsJson,
NugetDirectoryBuildProps,
NugetDirectoryPackagesProps,
NugetNupkg,
NugetProjectJson,
NugetProjectLockJson,
NugetPackagesConfig,
NugetPackagesLock,
NugetNuspec,
NugetVbproj,
NugetFsproj,
OpamFile,
PhpComposerJson,
PhpComposerLock,
PnpmLockYaml,
PnpmWorkspaceYaml,
Pipfile,
PipfileLock,
PipRequirements,
PixiLock,
PixiToml,
PypiPipOriginJson,
PypiEgg,
PypiInspectDeplock,
PypiJson,
PypiPoetryLock,
PypiPylockToml,
PypiPyprojectToml,
PypiSdistPkginfo,
PypiSetupCfg,
PypiSetupPy,
PypiUvLock,
PypiWheel,
PypiWheelMetadata,
RpmArchive,
RpmInstalledDatabaseBdb,
RpmInstalledDatabaseNdb,
RpmInstalledDatabaseSqlite,
RpmMarinerManifest,
RpmPackageLicenses,
RpmSpecfile,
RpmYumdb,
Gemfile,
GemfileLock,
GemArchive,
GemArchiveExtracted,
Gemspec,
InstallshieldInstaller,
IsoDiskImage,
NsisInstaller,
SharShellArchive,
SquashfsDiskImage,
SwiftPackageManifestJson,
SwiftPackageResolved,
SwiftPackageShowDependencies,
VcpkgJson,
YarnLock,
Gitmodules,
}Expand description
Unique identifier for the type of package data source (file format).
Datasource IDs distinguish between different file types within the same ecosystem
(e.g., NpmPackageJson vs NpmPackageLockJson). The assembly system uses these
IDs to match packages from related files for merging into a single logical package.
§Serialization
Variants serialize to snake_case strings matching the Python reference values. The JSON output is identical to the Python ScanCode Toolkit.
§Examples
use provenant::models::DatasourceId;
let id = DatasourceId::NpmPackageJson;
assert_eq!(id.as_ref(), "npm_package_json");
assert_eq!(id.to_string(), "npm_package_json");Variants§
AboutFile
Readme
EtcOsRelease
AlpineApkArchive
AlpineApkbuild
AlpineInstalledDb
ArchAurinfo
ArchPkginfo
ArchSrcinfo
AndroidAarLibrary
AndroidApk
Axis2Mar
Axis2ModuleXml
AutotoolsConfigure
BazelBuild
BazelModule
BowerJson
BuckFile
Matches Python reference value. More consistent name would be buck_file.
BuckMetadata
Matches Python reference value. More consistent name would be buck_metadata.
BunLock
BunLockb
CargoLock
CargoToml
ChefCookbookMetadataJson
Matches Python reference value.
ChefCookbookMetadataRb
Matches Python reference value.
CocoapodsPodfile
CocoapodsPodfileLock
CocoapodsPodspec
CocoapodsPodspecJson
ConanConanDataYml
ConanConanFilePy
ConanConanFileTxt
ConanLock
CondaYaml
Matches Python reference value.
CondaMetaJson
CondaMetaYaml
ClojureDepsEdn
ClojureProjectClj
CpanDistIni
CpanMakefile
Matches Python reference value.
CpanManifest
CpanMetaJson
CpanMetaYml
CranDescription
PubspecLock
PubspecYaml
DebianControlExtractedDeb
DebianControlInSource
DebianCopyright
DebianDeb
DebianSourceMetadataTarball
Matches Python reference value.
DebianDistrolessInstalledDb
DebianInstalledFilesList
Matches Python reference value.
DebianInstalledMd5Sums
DebianInstalledStatusDb
DebianMd5SumsInExtractedDeb
DebianOriginalSourceTarball
Matches Python reference value.
DebianSourceControlDsc
DenoJson
DenoLock
Dockerfile
FreebsdCompactManifest
Godeps
GoMod
GoModGraph
GoSum
GoWork
HackageCabal
HackageCabalProject
HackageStackYaml
BuildGradle
GradleLockfile
GradleModule
HaxelibJson
HelmChartLock
HelmChartYaml
HexMixLock
AntIvyXml
JavaEarApplicationXml
JavaEarArchive
JavaJar
JavaJarManifest
JavaOsgiManifest
JavaWarArchive
JavaWarWebXml
JbossSar
JbossServiceXml
MavenPom
MavenPomProperties
MesonBuild
SbtBuildSbt
MicrosoftCabinet
MicrosoftUpdateManifestMum
AppleDmg
ChromeCrx
IosIpa
MozillaXpi
MeteorPackage
NpmPackageJson
NpmPackageLockJson
NugetCsproj
NugetDepsJson
NugetDirectoryBuildProps
NugetDirectoryPackagesProps
NugetNupkg
NugetProjectJson
NugetProjectLockJson
NugetPackagesConfig
NugetPackagesLock
NugetNuspec
Serializes to "nuget_nupsec" to match Python reference value (typo in original).
NugetVbproj
NugetFsproj
OpamFile
PhpComposerJson
PhpComposerLock
PnpmLockYaml
PnpmWorkspaceYaml
Pipfile
PipfileLock
PipRequirements
PixiLock
PixiToml
PypiPipOriginJson
PypiEgg
PypiInspectDeplock
PypiJson
PypiPoetryLock
PypiPylockToml
PypiPyprojectToml
PypiSdistPkginfo
PypiSetupCfg
PypiSetupPy
PypiUvLock
PypiWheel
PypiWheelMetadata
RpmArchive
RpmInstalledDatabaseBdb
RpmInstalledDatabaseNdb
RpmInstalledDatabaseSqlite
RpmMarinerManifest
RpmPackageLicenses
RpmSpecfile
Serializes to "rpm_spefile" to match Python reference value (typo in original).
RpmYumdb
Gemfile
GemfileLock
GemArchive
GemArchiveExtracted
Matches Python reference value.
Gemspec
InstallshieldInstaller
IsoDiskImage
NsisInstaller
SharShellArchive
SquashfsDiskImage
SwiftPackageManifestJson
SwiftPackageResolved
SwiftPackageShowDependencies
VcpkgJson
YarnLock
Gitmodules
Implementations§
Trait Implementations§
Source§impl AsRef<str> for DatasourceId
impl AsRef<str> for DatasourceId
Source§impl Clone for DatasourceId
impl Clone for DatasourceId
Source§fn clone(&self) -> DatasourceId
fn clone(&self) -> DatasourceId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DatasourceId
impl Debug for DatasourceId
Source§impl<'de> Deserialize<'de> for DatasourceId
impl<'de> Deserialize<'de> for DatasourceId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for DatasourceId
impl Display for DatasourceId
Source§impl Hash for DatasourceId
impl Hash for DatasourceId
Source§impl IntoEnumIterator for DatasourceId
impl IntoEnumIterator for DatasourceId
Source§impl PartialEq for DatasourceId
impl PartialEq for DatasourceId
Source§impl Serialize for DatasourceId
impl Serialize for DatasourceId
impl Copy for DatasourceId
impl Eq for DatasourceId
impl StructuralPartialEq for DatasourceId
Auto Trait Implementations§
impl Freeze for DatasourceId
impl RefUnwindSafe for DatasourceId
impl Send for DatasourceId
impl Sync for DatasourceId
impl Unpin for DatasourceId
impl UnsafeUnpin for DatasourceId
impl UnwindSafe for DatasourceId
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more