1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use hdk::prelude::*;
use holo_hash::{EntryHashB64, HeaderHashB64};
#[doc = "This data structure will be very broadly useful and represents
how an entry should be serialized along with what metadata to
form a consistent pattern that the UI or client can expect.
It is called `WireElement` because it is how data looks passed
'over the wire' or network."]
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct WireElement<T> {
pub header_hash: HeaderHashB64,
pub entry_hash: EntryHashB64,
pub entry: T,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}