Struct crev_wot::ProofDB[][src]

pub struct ProofDB { /* fields omitted */ }
Expand description

In memory database tracking information from proofs

After population, used for calculating the effective trust set, etc.

Right now, for every invocation of crev, we just load it up with all known proofs, and then query. If it ever becomes too slow, all the logic here will have to be moved to a real embedded db of some kind.

Implementations

Get all issues affecting a given package version

Collect a map of Issue ID -> IssueReports, listing all issues known to affect a given package version.

These are calculated from advisories and issues fields of the package reviews of reviewers intside a given trust_set of at least given trust_level_required.

Get all Ids that authored a proof (with total count)

Finds which URL is the latest and claimed to belong to the given Id. The result indicates how reliable information this is.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.