1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#[macro_use] extern crate serde_derive; #[derive(Serialize, Deserialize)] pub struct TelegramNotification { pub chat_id: i64, pub message: String, } #[derive(Serialize, Deserialize)] pub struct Payslip { pub sender_id: u32, pub receiver_id: u32, pub amount: u32, pub currency: String, }