pub struct Entity {
pub id: EntityId,
pub name: String,
pub note: String,
pub attributes: Vec<AttributeId>,
pub weak: bool,
}Expand description
An ER entity. Holds owned attributes and a name.
Fields§
§id: EntityIdUnique handle within the owning model.
name: StringDisplay name (e.g. "Customer").
note: StringFree-form note shown in the inspector panel.
attributes: Vec<AttributeId>IDs of attributes owned by this entity, in author order.
weak: booltrue for weak entities, which require an identifying relationship
to be uniquely identified.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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 Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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