trustgraph / trustgraph-holochain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using LinkTypes for forward and backward links

harlantwood opened this issue · comments

commented

I like this idea, I'm wondering if it would be useful to allow for variants instead of just unit types for the LinkTypes enum and submitted an issue to HC requesting this

reasoning is that we could have different type/labels for links to distinguish between things

we could add an All variant to LinkDirection

ex:
#[hdk_link_types]
pub enum LinkTypes {
Agent(LinkDirection),
TrustAtom(LinkDirection),
Perspective(LinkDirection),
Neighborhood(LinkDirection)
}

etc etc

commented

maybe this is not useful or necessary, but just a thought inquiry