pub struct TrustPolicy {
pub allow_extracted: bool,
pub allow_resolved: bool,
pub allow_observed: bool,
pub allow_declared: bool,
pub allow_inferred: bool,
pub min_inferred_confidence: f64,
}Expand description
Trust policy applied to graph queries. STALE facts are always excluded; the remaining provenance classes are gated here.
Fields§
§allow_extracted: bool§allow_resolved: bool§allow_observed: bool§allow_declared: bool§allow_inferred: bool§min_inferred_confidence: f64Implementations§
Source§impl TrustPolicy
impl TrustPolicy
Sourcepub fn with_inferred_floor(self, floor: f64) -> Self
pub fn with_inferred_floor(self, floor: f64) -> Self
Policy derived from the context settings: lowering the inferred confidence floor to zero when low-confidence inference is explicitly requested (still labeled INFERRED, still evidence-linked).
pub fn allows(&self, prov: Provenance, confidence: f64) -> bool
Trait Implementations§
Source§impl Clone for TrustPolicy
impl Clone for TrustPolicy
Source§impl Debug for TrustPolicy
impl Debug for TrustPolicy
Auto Trait Implementations§
impl Freeze for TrustPolicy
impl RefUnwindSafe for TrustPolicy
impl Send for TrustPolicy
impl Sync for TrustPolicy
impl Unpin for TrustPolicy
impl UnsafeUnpin for TrustPolicy
impl UnwindSafe for TrustPolicy
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