pub struct Candidate {
pub confidence: f32,
pub opt_in: bool,
}Expand description
A candidate typed relation awaiting admission.
Contains only the fields the trust gate needs; the full
TypedRelation payload is kept in the inference module so that
this file stays free of clustering-shape types.
Fields§
§confidence: f32Clustering-assigned confidence in [0.0, 1.0].
opt_in: boolWhether the producer marked this edge opt-in (solution.md R3
§2 ProvenanceTag::InferredRelation { opt_in: true }).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candidate
impl<'de> Deserialize<'de> for Candidate
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
impl Copy for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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