Rename AnkNetworkMsg to Envelope
This commit is contained in:
parent
28c23505e6
commit
a3af3a8ae6
@ -151,12 +151,12 @@ impl Pcd {
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Tsify)]
|
||||
#[tsify(into_wasm_abi, from_wasm_abi)]
|
||||
pub struct AnkNetworkMsg {
|
||||
pub struct Envelope {
|
||||
pub flag: AnkFlag,
|
||||
pub content: String,
|
||||
}
|
||||
|
||||
impl AnkNetworkMsg {
|
||||
impl Envelope {
|
||||
pub fn new(flag: AnkFlag, raw: &str) -> Self {
|
||||
Self {
|
||||
flag,
|
||||
|
Loading…
x
Reference in New Issue
Block a user