pub struct EntityReference {
pub id: Uuid,
pub entity_type: String,
}Expand description
Reference to an entity instance in a link
Fields§
§id: UuidThe unique ID of the entity
entity_type: StringThe type of entity (e.g., “user”, “company”, “car”)
CRITICAL: This is a String, not an enum, to maintain complete decoupling from specific entity types
Implementations§
Trait Implementations§
Source§impl Clone for EntityReference
impl Clone for EntityReference
Source§fn clone(&self) -> EntityReference
fn clone(&self) -> EntityReference
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 EntityReference
impl Debug for EntityReference
Source§impl<'de> Deserialize<'de> for EntityReference
impl<'de> Deserialize<'de> for EntityReference
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
Source§impl PartialEq for EntityReference
impl PartialEq for EntityReference
Source§impl Serialize for EntityReference
impl Serialize for EntityReference
impl StructuralPartialEq for EntityReference
Auto Trait Implementations§
impl Freeze for EntityReference
impl RefUnwindSafe for EntityReference
impl Send for EntityReference
impl Sync for EntityReference
impl Unpin for EntityReference
impl UnwindSafe for EntityReference
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