1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use serde::Deserialize; #[derive(Deserialize)] pub struct PaymentSimulation { status: String, message: String } impl PaymentSimulation { pub fn get_status(&self) -> &str { &self.status } pub fn get_message(&self) -> &str { &self.message } }