pub struct PredicateDef {Show 13 fields
pub name: PredicateRef,
pub object_kind: ObjectKind,
pub subject_types: Vec<EntityTypeRef>,
pub cardinality: Cardinality,
pub temporality: Temporality,
pub invalidation: Invalidation,
pub symmetric: bool,
pub inverse_of: Option<PredicateRef>,
pub description: String,
pub examples: Vec<String>,
pub deprecated_by: Option<PredicateRef>,
pub profile_relevant: bool,
pub confidence_prior: f32,
}Fields§
§name: PredicateRef§object_kind: ObjectKind§subject_types: Vec<EntityTypeRef>§cardinality: Cardinality§temporality: Temporality§invalidation: Invalidation§symmetric: bool§inverse_of: Option<PredicateRef>§description: String§examples: Vec<String>§deprecated_by: Option<PredicateRef>§profile_relevant: bool§12.2 — predicate is “what the user wants in every answer”. A predicate marked here is queried on every Profile render. Defaults to false. Bumping this on existing predicates is a minor-version event: existing cached extractions are unaffected (D21).
confidence_prior: f32§5.5 — confidence prior for this predicate. Defaults to 1.0 (normal
evidence). Hearsay/uncertain predicates (e.g. allegedly_employed_by)
carry a lower prior so the fold produces low-confidence beliefs
automatically — no special-casing in the pipeline (P4).
Trait Implementations§
Source§impl Clone for PredicateDef
impl Clone for PredicateDef
Source§fn clone(&self) -> PredicateDef
fn clone(&self) -> PredicateDef
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 PredicateDef
impl Debug for PredicateDef
Source§impl<'de> Deserialize<'de> for PredicateDef
impl<'de> Deserialize<'de> for PredicateDef
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
Auto Trait Implementations§
impl Freeze for PredicateDef
impl RefUnwindSafe for PredicateDef
impl Send for PredicateDef
impl Sync for PredicateDef
impl Unpin for PredicateDef
impl UnsafeUnpin for PredicateDef
impl UnwindSafe for PredicateDef
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