1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use super::super::Meta;
use std::collections::HashMap;
use serde::{Deserialize, Serialize};
use serde_json::Value;
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub struct Entry<C: ?Sized = ()> {
#[serde(flatten)]
pub meta: Meta,
#[serde(flatten)]
pub custom: HashMap<String, Value>,
#[serde(skip)]
pub content: C,
}
impl<C> Entry<C> {
pub const TYPE: &'static str = "application/vnd.drawbridge.entry.v1+json";
}