mirror of
https://github.com/actix/examples
synced 2025-03-29 14:25:41 +01:00
13 lines
223 B
Rust
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"
|
|
}
|
|
} |