1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use serde::Deserialize; /// Account status. #[derive(Debug, Deserialize)] pub enum Status { ReadOnly, CloseOnly, Full, } /// User account and it's status. #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Account { /// Account status. pub status: Status, /// Account ID. pub account_id: String, }