Hailey on Nostr: ideally I would like to write something like this with serde: #[derive(Serialize, ...
ideally I would like to write something like this with serde:
#[derive(Serialize, Deserialize)]
struct Person {
#[key(1)]
name: String,
#[key(2)]
age: usize,
}
Published at
2024-06-16 02:58:28Event JSON
{
"id": "64068787d4360f9a13984d17a92397984c6667148b3b6f24676957eaabf089dd",
"pubkey": "00f8bb3d85b00eae2aed3db4a1676421a3b4be091e192a1b39c57a69d94c9503",
"created_at": 1718506708,
"kind": 1,
"tags": [
[
"e",
"025dfbf2fc7af1a45405dcc816660bfd6969f935af1991ec179da3cdef039866",
"",
"root"
],
[
"proxy",
"https://hails.org/@hailey/112624055629276793",
"web"
],
[
"p",
"00f8bb3d85b00eae2aed3db4a1676421a3b4be091e192a1b39c57a69d94c9503"
],
[
"proxy",
"https://hails.org/users/hailey/statuses/112624055629276793",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hails.org/users/hailey/statuses/112624055629276793",
"pink.momostr"
]
],
"content": "ideally I would like to write something like this with serde:\n\n#[derive(Serialize, Deserialize)]\nstruct Person {\n #[key(1)]\n name: String,\n #[key(2)]\n age: usize,\n}",
"sig": "808d28583ae45c8babebff456c9e6cec09ef1ed8c87c48106054069b70b0d2fe2ccd93435b63b6ed632133a010e09feba0c04626c42278759f02c20b4afd3e01"
}