macro_rules! published {
($request_id:expr, $publication:expr) => { ... };
}
Expand description
§Published Macro - wamp-proto
Macro that allows for default empty implementation of publication object on Published.
§Examples
use wamp_core::messages::{self, Published};
use wamp_core::published;
use serde_json::json;
let mut published_message = published!(1, 2);
let published_message2 = published!(1, 3);
assert_ne!(published_message, published_message2);
// These macro invocations are the same as the following:
let published_message3 = Published {
request_id: 1,
publication: 2
};
assert_eq!(published_message, published_message3);
assert_ne!(published_message2, published_message3);