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
use semver::Version;
use serde::{Deserialize, Serialize};

use crate::prelude::{AgentId, DeliveryEnvelope, Payload};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RoutingEnvelope {
    pub recipient: AgentId,
    pub version: Version,
    pub payload: Payload<DeliveryEnvelope>,
}