#[derive(PartialEq, Eq)] pub struct Intent { pub id: String, pub wallet: String, pub network: String, pub address_type: String, pub destination: String, pub total_debit_sat: u64, } pub fn matches_approval(proposed: &Intent, approved: &Intent, now: u64, expires: u64) -> bool { proposed == approved && proposed.network == "test" && proposed.total_debit_sat > 0 && now < expires }