pub struct Occurrence {
pub ecosystem: String,
pub package: String,
pub version: String,
pub path: String,
pub license: Option<String>,
pub published_at: Option<String>,
pub repository_url: Option<String>,
pub archive_url: Option<String>,
pub content_sha256: String,
}Expand description
Where a stored function appears: a file of a package version.
Fields§
§ecosystem: StringEcosystem of the package.
package: StringName of the package.
version: StringVersion of the package.
path: StringPath of the file in the package.
license: Option<String>License of the package version.
published_at: Option<String>Publication date and time of the version (RFC 3339).
repository_url: Option<String>URL of the source repository of the package.
archive_url: Option<String>URL the source archive was downloaded from.
content_sha256: StringSHA-256 of the file content (hex).
Trait Implementations§
Source§impl Clone for Occurrence
impl Clone for Occurrence
Source§impl Debug for Occurrence
impl Debug for Occurrence
impl Eq for Occurrence
Source§impl PartialEq for Occurrence
impl PartialEq for Occurrence
Source§impl Serialize for Occurrence
impl Serialize for Occurrence
impl StructuralPartialEq for Occurrence
Auto Trait Implementations§
impl Freeze for Occurrence
impl RefUnwindSafe for Occurrence
impl Send for Occurrence
impl Sync for Occurrence
impl Unpin for Occurrence
impl UnsafeUnpin for Occurrence
impl UnwindSafe for Occurrence
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<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> ⓘ
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