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
32
33
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub enum MessageType {
#[serde(rename = "application/didcomm-encrypted+json")]
DidcommJwe,
#[serde(rename = "application/didcomm-signed+json")]
DidcommJws,
#[serde(rename = "application/didcomm-plain+json")]
DidcommRaw,
#[serde(rename = "https://didcomm.org/routing/2.0/forward")]
DidcommForward,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub enum ContentType {
#[serde(rename = "https://didcomm.org/routing/2.0/forward")]
Forward,
#[serde(rename = "application/pdf")]
MediaPdf,
#[serde(rename = "application/vnd.openxmlformats-")]
MediaOpenXml,
#[serde(rename = "application/json")]
MediaJson,
#[serde(rename = "application/ld+json")]
MediaJsonLd,
#[serde(rename = "application/zip")]
ZipArchive,
#[serde(rename = "application/octet-stream")]
BinaryData,
}