co_didcomm/messages/headers/
types.rs1#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
3pub enum MessageType {
4 #[serde(rename = "application/didcomm-encrypted+json")]
5 DidCommJwe,
6 #[serde(rename = "application/didcomm-signed+json")]
7 DidCommJws,
8 #[serde(rename = "application/didcomm-plain+json")]
9 DidCommRaw,
10 #[serde(rename = "https://didcomm.org/routing/2.0/forward")]
11 DidCommForward,
12 #[serde(rename = "https://didcomm.org/out-of-band/2.0/invitation")]
13 DidCommInvitation,
14}
15
16#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
18pub enum ContentType {
19 #[serde(rename = "https://didcomm.org/routing/2.0/forward")]
20 Forward,
21 #[serde(rename = "application/pdf")]
22 MediaPdf,
23 #[serde(rename = "application/vnd.openxmlformats-")]
24 MediaOpenXml,
25 #[serde(rename = "application/json")]
26 MediaJson,
27 #[serde(rename = "application/ld+json")]
28 MediaJsonLd,
29 #[serde(rename = "application/zip")]
30 ZipArchive,
31 #[serde(rename = "application/octet-stream")]
32 BinaryData,
33}