Rename AnkNetworkMsg to Envelope

This commit is contained in:
Sosthene 2024-06-04 12:09:14 +02:00
parent 41743ab3e7
commit 95ed1e1f1c

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,