pub struct RelationProfile {
pub forward_phrase: String,
pub reverse_phrase: String,
pub context_score: i64,
pub searchable: bool,
pub traversable: bool,
pub domain_kinds: Vec<String>,
pub range_kinds: Vec<String>,
}Expand description
Retrieval/traversal semantics for a relation name.
Edges keep their simple relation: String; this optional graph-level profile gives retrieval
the contract for how a relation should be searched and walked without hardcoding every domain
relation in the kernel.
Fields§
§forward_phrase: StringPhrase indexed on the source node, e.g. produces.
reverse_phrase: StringPhrase indexed on the target node, e.g. produced by.
context_score: i64Relative priority when building focused context packs.
searchable: boolWhether this relation contributes relation text to BM25F.
traversable: boolWhether focus expansion may walk this relation when the edge basis is trusted.
domain_kinds: Vec<String>Optional allowed source node kinds for this relation, using lowercase kind labels.
range_kinds: Vec<String>Optional allowed target node kinds for this relation, using lowercase kind labels.
Implementations§
Trait Implementations§
Source§impl Clone for RelationProfile
impl Clone for RelationProfile
Source§fn clone(&self) -> RelationProfile
fn clone(&self) -> RelationProfile
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 RelationProfile
impl Debug for RelationProfile
Source§impl<'de> Deserialize<'de> for RelationProfile
impl<'de> Deserialize<'de> for RelationProfile
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 Eq for RelationProfile
Source§impl PartialEq for RelationProfile
impl PartialEq for RelationProfile
Source§fn eq(&self, other: &RelationProfile) -> bool
fn eq(&self, other: &RelationProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationProfile
impl Serialize for RelationProfile
impl StructuralPartialEq for RelationProfile
Auto Trait Implementations§
impl Freeze for RelationProfile
impl RefUnwindSafe for RelationProfile
impl Send for RelationProfile
impl Sync for RelationProfile
impl Unpin for RelationProfile
impl UnsafeUnpin for RelationProfile
impl UnwindSafe for RelationProfile
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