pub struct RelationWithEntity {
pub id: String,
pub relation_type: String,
pub direction: String,
pub entity_id: String,
pub entity_name: String,
pub entity_type: String,
pub source_agent: Option<String>,
pub created_at: i64,
}Expand description
A relation with resolved entity info (for detail views).
Fields§
§id: String§relation_type: String§direction: String§entity_id: String§entity_name: String§entity_type: String§source_agent: Option<String>§created_at: i64Trait Implementations§
Source§impl Clone for RelationWithEntity
impl Clone for RelationWithEntity
Source§fn clone(&self) -> RelationWithEntity
fn clone(&self) -> RelationWithEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 RelationWithEntity
impl Debug for RelationWithEntity
Source§impl<'de> Deserialize<'de> for RelationWithEntity
impl<'de> Deserialize<'de> for RelationWithEntity
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 RelationWithEntity
impl RefUnwindSafe for RelationWithEntity
impl Send for RelationWithEntity
impl Sync for RelationWithEntity
impl Unpin for RelationWithEntity
impl UnsafeUnpin for RelationWithEntity
impl UnwindSafe for RelationWithEntity
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