pub struct EnrichedLink {
pub id: Uuid,
pub entity_type: String,
pub link_type: String,
pub source_id: Uuid,
pub target_id: Uuid,
pub source: Option<Value>,
pub target: Option<Value>,
pub metadata: Option<Value>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub status: String,
}Expand description
Link with full entity data instead of just references
Fields§
§id: UuidUnique identifier for this link
entity_type: StringEntity type
link_type: StringThe type of relationship (e.g., “has_invoice”, “payment”)
source_id: UuidSource entity ID
target_id: UuidTarget entity ID
source: Option<Value>Full source entity as JSON (omitted when querying from source)
target: Option<Value>Full target entity as JSON (omitted when querying from target)
metadata: Option<Value>Optional metadata for the relationship
created_at: DateTime<Utc>When this link was created
updated_at: DateTime<Utc>When this link was last updated
status: StringStatus
Trait Implementations§
Source§impl Debug for EnrichedLink
impl Debug for EnrichedLink
Auto Trait Implementations§
impl Freeze for EnrichedLink
impl RefUnwindSafe for EnrichedLink
impl Send for EnrichedLink
impl Sync for EnrichedLink
impl Unpin for EnrichedLink
impl UnwindSafe for EnrichedLink
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