pub struct EdgeView {
pub id: String,
pub from: String,
pub to: String,
pub rel_type: String,
pub description: Option<String>,
pub confidence: f64,
pub evidence: f64,
pub self_reinforcements: i64,
pub superseded: bool,
}Expand description
One relationship, with its endpoints resolved and its evidence exposed.
Fields§
§id: StringRecord id, so a caller can act on exactly this edge.
from: StringName of the entity the edge points from.
to: StringName of the entity the edge points to.
rel_type: String§description: Option<String>§confidence: f64Posterior mean — what retrieval scores on.
evidence: f64Total evidence weight behind confidence (the Beta concentration).
The difference between “believed at 0.9” and “believed at 0.9 for good
reason”.
self_reinforcements: i64Corroborations the agent produced itself, counted but never laundered
into confidence. Non-zero is the “I might be talking to myself”
signal, and it is exactly what a human should see.
superseded: boolA later relationship replaced this one.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeView
impl<'de> Deserialize<'de> for EdgeView
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 StructuralPartialEq for EdgeView
Auto Trait Implementations§
impl Freeze for EdgeView
impl RefUnwindSafe for EdgeView
impl Send for EdgeView
impl Sync for EdgeView
impl Unpin for EdgeView
impl UnsafeUnpin for EdgeView
impl UnwindSafe for EdgeView
Blanket Implementations§
impl<T> AsyncFriendly for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request