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