relay-core 0.2.0-beta.3

The core components of the Relay Protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::prelude::CryptoInfo;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Attachment {
    pub gid: Uuid,
    pub filename: String,
    pub content_type: String,
    pub size: u64,
    pub crypto: CryptoInfo,
    #[serde(with = "hex::serde")]
    pub checksum: Vec<u8>,
    #[serde(with = "hex::serde")]
    pub key: Vec<u8>,
}