pub struct Hyperedge {
pub id: HyperedgeId,
pub entities: Vec<EntityId>,
pub relation: Relation,
pub weight: f32,
pub created_at: SubstrateTime,
}Expand description
A hyperedge connecting multiple entities
Fields§
§id: HyperedgeIdUnique identifier
entities: Vec<EntityId>Entities connected by this hyperedge
relation: RelationRelation type and properties
weight: f32Edge weight
created_at: SubstrateTimeCreation timestamp
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hyperedge
impl<'de> Deserialize<'de> for Hyperedge
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
Auto Trait Implementations§
impl Freeze for Hyperedge
impl RefUnwindSafe for Hyperedge
impl Send for Hyperedge
impl Sync for Hyperedge
impl Unpin for Hyperedge
impl UnwindSafe for Hyperedge
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