pub struct PackageInfo {
pub ecosystem: String,
pub name: String,
pub version: String,
pub license_spdx: Option<String>,
pub repository_url: Option<String>,
pub published_at: Option<String>,
pub archive_url: Option<String>,
pub archive_sha256: Option<String>,
}Expand description
Where indexed source files come from.
Fields§
§ecosystem: StringEcosystem of the package: pypi, maven, go, rubygems, crates or local.
name: StringName of the package within its ecosystem.
version: StringVersion of the package.
license_spdx: Option<String>License, as an SPDX expression when it could be identified.
repository_url: Option<String>URL of the source repository.
published_at: Option<String>Publication date and time (RFC 3339).
archive_url: Option<String>URL the source archive was downloaded from.
archive_sha256: Option<String>SHA-256 of the downloaded archive (hex).
Trait Implementations§
Source§impl Clone for PackageInfo
impl Clone for PackageInfo
Source§impl Debug for PackageInfo
impl Debug for PackageInfo
Auto Trait Implementations§
impl Freeze for PackageInfo
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnsafeUnpin for PackageInfo
impl UnwindSafe for PackageInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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