Generated Rust Serde Structs
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RootPayload {
#[serde(rename = "userId")]
pub user_id: i64,
pub username: String,
#[serde(rename = "isVerified")]
pub is_verified: bool,
#[serde(rename = "balanceUsd")]
pub balance_usd: f64,
pub nickname: Option<serde_json::Value>,
pub roles: Vec<String>,
pub profile: Profile,
pub orders: Vec<Order>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Order {
#[serde(rename = "orderId")]
pub order_id: String,
pub total: f64,
pub shipped: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Profile {
#[serde(rename = "displayName")]
pub display_name: String,
#[serde(rename = "joinedYear")]
pub joined_year: i64,
}