Skip to main content

TierCFinding

Struct TierCFinding 

Source
pub struct TierCFinding<'a> {
Show 13 fields pub ecosystem: Ecosystem, pub advisory_id: String, pub aliases: Vec<String>, pub title: String, pub severity: Severity, pub cvss_score: Option<f32>, pub package: String, pub installed: Version, pub patched: Vec<VersionReq>, pub direct: bool, pub dependency_path: Vec<String>, pub repo: &'a RepoId, pub reach_reason: &'static str,
}
Expand description

The inputs a feeder supplies to build one Tier-C VulnFinding. The version-matching decision (and any to_semver coercion of the installed/patched versions) happens in the feeder; everything here is already in the shared model’s types.

Fields§

§ecosystem: Ecosystem

The ecosystem this finding came from.

§advisory_id: String

The advisory id (the osv.dev URL is derived from it).

§aliases: Vec<String>

CVE/GHSA/… cross-reference aliases.

§title: String

Display title — typically the advisory summary, falling back to the id.

§severity: Severity

Severity band.

§cvss_score: Option<f32>

CVSS base score when the advisory carries one (None where the feeder does not extract it).

§package: String

The affected package name.

§installed: Version

The installed version, in the shared SemVer model (already coerced by the feeder).

§patched: Vec<VersionReq>

Versions that fix the advisory; empty means “no fix available”.

§direct: bool

Whether the package is a direct dependency.

§dependency_path: Vec<String>

A representative introducer chain [root, …, package]; empty when the feeder cannot compute a dependency graph.

§repo: &'a RepoId

The repo the package was found in.

§reach_reason: &'static str

The reason string for the Tier-C Unknown reachability verdict (the feeder names the fidelity, e.g. “package-level scan (no toolchain): version match only”).

Implementations§

Source§

impl TierCFinding<'_>

Source

pub fn build(self) -> VulnFinding

Assemble the VulnFinding. Package-level only: affected_functions is empty, reachable is None, and reachability is the Tier-C Unknown contract (never NotReachable — see Reachability::tier_c_unknown).

Auto Trait Implementations§

§

impl<'a> Freeze for TierCFinding<'a>

§

impl<'a> RefUnwindSafe for TierCFinding<'a>

§

impl<'a> Send for TierCFinding<'a>

§

impl<'a> Sync for TierCFinding<'a>

§

impl<'a> Unpin for TierCFinding<'a>

§

impl<'a> UnsafeUnpin for TierCFinding<'a>

§

impl<'a> UnwindSafe for TierCFinding<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.