pub struct LinkDecision {
pub source: NodeId,
pub target: NodeId,
pub relation: EdgeKind,
pub matcher: String,
pub matcher_version: Version,
pub score: f32,
pub confidence: f32,
pub reasons: Vec<String>,
pub rejected_alternatives: Vec<RejectedAlternative>,
pub evidence: Vec<EvidenceRef>,
pub status: LinkStatus,
}Expand description
Versioned and explainable record of a linker match or suppression.
Fields§
§source: NodeIdResolved source node.
target: NodeIdResolved target node.
relation: EdgeKindConcrete relationship considered by the matcher.
matcher: StringStable matcher identifier.
matcher_version: VersionSemantic version of the matcher behavior.
score: f32Normalized raw match score in the inclusive range from zero to one.
confidence: f32Normalized confidence in the inclusive range from zero to one.
reasons: Vec<String>Deterministically ordered explanations for the decision.
rejected_alternatives: Vec<RejectedAlternative>Deterministically ordered candidates that were not selected.
evidence: Vec<EvidenceRef>Deterministically ordered supporting evidence references.
status: LinkStatusFinal decision state.
Trait Implementations§
Source§impl Clone for LinkDecision
impl Clone for LinkDecision
Source§fn clone(&self) -> LinkDecision
fn clone(&self) -> LinkDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LinkDecision
impl Debug for LinkDecision
Source§impl<'de> Deserialize<'de> for LinkDecision
impl<'de> Deserialize<'de> for LinkDecision
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 JsonSchema for LinkDecision
impl JsonSchema for LinkDecision
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LinkDecision
impl PartialEq for LinkDecision
Source§impl Serialize for LinkDecision
impl Serialize for LinkDecision
impl StructuralPartialEq for LinkDecision
Auto Trait Implementations§
impl Freeze for LinkDecision
impl RefUnwindSafe for LinkDecision
impl Send for LinkDecision
impl Sync for LinkDecision
impl Unpin for LinkDecision
impl UnsafeUnpin for LinkDecision
impl UnwindSafe for LinkDecision
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