pecet on Nostr: Hey #rust folks, got little #programming question for you. I've got some enum ...
Hey #rust folks, got little #programming question for you.
I've got some enum variant, and I've implemented From<String> for it, however it seems that I cannot implement reverse trait. What is the best way to unpack value then?
Published at
2024-08-24 15:30:03Event JSON
{
"id": "71996596430f97b7ba122905300ae9d5bc6806cf127048e4f85d4dc7e501695f",
"pubkey": "681f1cae7c4d217b5dacf86d0b8afcb375cfa0574e4eab31e243a11982f8a975",
"created_at": 1724513403,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"programming"
],
[
"proxy",
"https://f3d1.eu/users/pecet/statuses/01J62H5SDY9JZSMTG553GBQJGB",
"activitypub"
]
],
"content": "Hey #rust folks, got little #programming question for you.\nI've got some enum variant, and I've implemented From\u003cString\u003e for it, however it seems that I cannot implement reverse trait. What is the best way to unpack value then?\n\nhttps://f3d1.eu/fileserver/01Y1A6T0YSFK167D8RE18W3P37/attachment/original/01J62H5AWR89FYC1JNHSDJX4RA.png",
"sig": "d7baf2dd9f022a6de1529944ea7d904333d09ac6ff2eb607d51d196ca94e3876b3018125b28585b0703b77cd3633db0f67c53eaf097d28c03a51bd61f98101eb"
}