relay-core 0.2.0-beta.4

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 chrono::{DateTime, Utc};
use semver::Version;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::prelude::{Address, Payload, PrivateEnvelope};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeliveryEnvelope {
    pub gid: Uuid,
    pub version: Version,
    pub from: Address,
    pub to: Address,
    pub self_encrypted: bool,
    pub timestamp: DateTime<Utc>,
    pub payload: Payload<PrivateEnvelope>,
}