vrchatapi 1.22.2-nightly.2

VRChat API Client for Rust
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

/// EconomyStatus : Whether the economy is accepting requests.
#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EconomyStatus {
    #[serde(rename = "economyOnline")]
    pub economy_online: bool,
    #[serde(rename = "economyState")]
    pub economy_state: i32,
}

impl EconomyStatus {
    /// Whether the economy is accepting requests.
    pub fn new(economy_online: bool, economy_state: i32) -> EconomyStatus {
        EconomyStatus {
            economy_online,
            economy_state,
        }
    }
}