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