1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use sails_macros::program; struct MyProgram; #[program] impl MyProgram { pub fn new() -> Self { Self } #[handle_reply] fn handle_reply(&self) {} #[handle_reply] fn handle_reply_2(&self) {} } #[tokio::main] async fn main() {}