Rename AnkNetworkMsg to Envelope
This commit is contained in:
parent
41743ab3e7
commit
95ed1e1f1c
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user