1
0
mirror of https://github.com/actix/examples synced 2025-07-16 08:15:45 +02:00
Files
examples/actix-remote-basics/src/msgs.rs
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"
}
}