pub struct Relationship {
pub id: EntityId,
pub kind: RelationshipKind,
pub relating: Option<EntityId>,
pub related: Vec<EntityId>,
}Expand description
One relationship instance, resolved to its ends.
Fields§
§id: EntityIdThe relationship entity itself.
kind: RelationshipKindWhich relationship type this is.
relating: Option<EntityId>The parent/owner end.
The child/member ends, in file order.
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§impl Debug for Relationship
impl Debug for Relationship
impl Eq for Relationship
Source§impl PartialEq for Relationship
impl PartialEq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnsafeUnpin for Relationship
impl UnwindSafe for Relationship
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