pub struct ResolutionRationale {
pub summary: String,
pub applied_rules: Vec<AppliedRule>,
pub contributing_vendors: Vec<VendorScore>,
pub evidence: EvidenceBundle,
pub top_vendor: VendorId,
pub confidence: f64,
pub merge_strategy: MergeStrategy,
}Expand description
Full rationale bundle the resolver returns alongside the strategy marker.
The bundle carries everything the diagnostic payload needs to
audit the resolver’s decision: the top vendor, the confidence
the rule was evaluated against, the ranked vendor scoreboard
the classifier produced, the evidence bundle that produced the
scoreboard, the MergeStrategy that was applied, and a
per-rule audit log (applied_rules).
Fields§
§summary: StringHuman-readable summary suitable for an operator log.
applied_rules: Vec<AppliedRule>Per-rule audit log, in priority order.
contributing_vendors: Vec<VendorScore>Ranked vendor scoreboard that drove the decision (top first).
evidence: EvidenceBundleEvidence bundle that produced the scoreboard.
top_vendor: VendorIdTop vendor (mirrors
VendorClassification::top_vendor).
confidence: f64Confidence the rule was evaluated against.
merge_strategy: MergeStrategyMerge strategy the resolver applied.
Trait Implementations§
Source§impl Clone for ResolutionRationale
impl Clone for ResolutionRationale
Source§fn clone(&self) -> ResolutionRationale
fn clone(&self) -> ResolutionRationale
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolutionRationale
impl Debug for ResolutionRationale
Source§impl<'de> Deserialize<'de> for ResolutionRationale
impl<'de> Deserialize<'de> for ResolutionRationale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolutionRationale
impl PartialEq for ResolutionRationale
Source§impl Serialize for ResolutionRationale
impl Serialize for ResolutionRationale
impl StructuralPartialEq for ResolutionRationale
Auto Trait Implementations§
impl Freeze for ResolutionRationale
impl RefUnwindSafe for ResolutionRationale
impl Send for ResolutionRationale
impl Sync for ResolutionRationale
impl Unpin for ResolutionRationale
impl UnsafeUnpin for ResolutionRationale
impl UnwindSafe for ResolutionRationale
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