#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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