Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/Enhanced/SecureMessageChannel/
SecureMessage.rs

1//! Generic encrypted-message wrapper carrying additional
2//! routing headers and a protocol version. The phantom `T`
3//! is the original plaintext type; the wrapper itself
4//! serialises only the encrypted envelope + headers + version.
5
6use std::{collections::HashMap, marker::PhantomData};
7
8use serde::{Deserialize, Serialize};
9
10use crate::IPC::Enhanced::SecureMessageChannel::EncryptedMessage;
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct Struct<T> {
14	pub encrypted:EncryptedMessage::Struct,
15
16	pub headers:HashMap<String, String>,
17
18	pub version:String,
19
20	#[serde(skip)]
21	pub(super) _marker:PhantomData<T>,
22}