1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2026 Erik Lening (hollowpointer) and Contributors
//
// This file is part of Zond Engine, licensed under the GNU Affero General
// Public License, version 3 or later. See the LICENSE file for details, or
// <https://www.gnu.org/licenses/agpl-3.0.html>.
//
// SPDX-License-Identifier: AGPL-3.0-or-later
//! # How sure a claim is
//!
//! A grade rather than a percentage, so that two claims reached by different
//! routes can be ranked without either knowing how the other was arrived at.
//!
//! A [`Finding`](crate::model::finding::Finding) carries one. A
//! [`Service`](crate::model::port::Service) does not: it holds the `0..=100`
//! score [`as_score`](Confidence::as_score) projects onto, because a service
//! identification is refined in place by several analyzers and the score is what
//! [`Service::merge`](crate::model::port::Service::merge) ranks them by. The two
//! are comparable through that projection rather than directly, which is worth
//! knowing before writing a report that puts them side by side.
/// How much trust to place in a single piece of [`Evidence`](crate::fingerprint::Evidence).
///
/// Ordered weakest-to-strongest, so evidence can be compared and ranked
/// directly.
///
/// Non-exhaustive, as [`Severity`](crate::model::finding::Severity) is: a grade
/// added to the scale costs a recompile rather than a major version.
/// [`ALL`](Self::ALL) is the list to iterate.