1
0
mirror of https://github.com/actix/examples synced 2025-03-29 14:25:41 +01:00
2018-04-13 10:15:17 +08:00

13 lines
223 B
Rust

use actix_remote::*;
#[derive(Debug, Message, Serialize, Deserialize)]
pub struct TestMessage {
pub msg: String,
}
impl RemoteMessage for TestMessage {
fn type_id() -> &'static str {
"TestMessage"
}
}