Rename AnkNetworkMsg to Envelope

This commit is contained in:
Sosthene 2024-06-04 12:09:14 +02:00 committed by Nicolas Cantu
parent 28c23505e6
commit a3af3a8ae6

View File

@ -151,12 +151,12 @@ impl Pcd {
#[derive(Debug, Serialize, Deserialize, Tsify)] #[derive(Debug, Serialize, Deserialize, Tsify)]
#[tsify(into_wasm_abi, from_wasm_abi)] #[tsify(into_wasm_abi, from_wasm_abi)]
pub struct AnkNetworkMsg { pub struct Envelope {
pub flag: AnkFlag, pub flag: AnkFlag,
pub content: String, pub content: String,
} }
impl AnkNetworkMsg { impl Envelope {
pub fn new(flag: AnkFlag, raw: &str) -> Self { pub fn new(flag: AnkFlag, raw: &str) -> Self {
Self { Self {
flag, flag,