pub struct RelationDetail {
pub relation_id: String,
pub relation_type: String,
pub from_entity: String,
pub to_entity: String,
pub confidence: f32,
pub valid_from_unix_nanos: u64,
pub valid_to_unix_nanos: u64,
pub is_symmetric: bool,
pub tombstoned: bool,
pub from_name: Option<String>,
pub to_name: Option<String>,
}Expand description
One relation, as the edge projects it.
Fields§
§relation_id: String§relation_type: String§from_entity: String§to_entity: String§confidence: f32§valid_from_unix_nanos: u64§valid_to_unix_nanos: u64§is_symmetric: bool§tombstoned: bool§from_name: Option<String>Display name of from_entity (absent when it could not be resolved).
The server resolves these so a caller does not have to. Without them every consumer re-queries each id just to print a name — which is the second call the field exists to remove.
to_name: Option<String>Display name of to_entity (absent when it could not be resolved).
Trait Implementations§
Source§impl Clone for RelationDetail
impl Clone for RelationDetail
Source§impl Debug for RelationDetail
impl Debug for RelationDetail
Source§impl<'de> Deserialize<'de> for RelationDetail
impl<'de> Deserialize<'de> for RelationDetail
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 RelationDetail
impl RefUnwindSafe for RelationDetail
impl Send for RelationDetail
impl Sync for RelationDetail
impl Unpin for RelationDetail
impl UnsafeUnpin for RelationDetail
impl UnwindSafe for RelationDetail
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