Rust: How do I create a new TypeTag<>? #3477
neil2468
started this conversation in
General & Learning
Replies: 1 comment
-
@neil2468 👋 all questions are welcome, so please don't hesitate to ask. Discussions is a great place for it. The type tag is a number that should be unique across our types. The easiest way to generate a number that is very likely unique is this link https://www.random.org/integers/?num=100&min=1000000&max=9999999&col=5&base=10&format=html&rnd=new |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
In
ockam_api
there are structs such as the below. If I wanted to add a new struct, how would I decide on or generate aTypeTag
value for it?I'd like to do this because I'm looking at adding a new request in
ockam_api::nodes::service::NodeManager::handle_request()
that allows theockam
CLI to ask a node about it's current servces.Thanks in advance!
(and apologies if this is not the place to ask this)
Beta Was this translation helpful? Give feedback.
All reactions