use ruststream::{Outgoing, subscriber};
use serde::Serialize;
#[derive(Serialize, Outgoing)]
struct Receipt;
// `reply(..)` takes the reply topic as a string literal or a `&'static str` expression; an
// integer fails the destination's type.
#[subscriber("orders", reply(123))]
async fn handle(order: &u8) -> Receipt {
let _ = order;
Receipt
}
fn main() {}