vrchatapi 1.20.8-nightly.11

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InventoryConsumptionResults {
    #[serde(rename = "errors")]
    pub errors: Vec<serde_json::Value>,
    #[serde(rename = "inventoryItems")]
    pub inventory_items: Vec<models::InventoryItem>,
    #[serde(rename = "inventoryItemsCreated")]
    pub inventory_items_created: i32,
}

impl InventoryConsumptionResults {
    pub fn new(
        errors: Vec<serde_json::Value>,
        inventory_items: Vec<models::InventoryItem>,
        inventory_items_created: i32,
    ) -> InventoryConsumptionResults {
        InventoryConsumptionResults {
            errors,
            inventory_items,
            inventory_items_created,
        }
    }
}