vrchatapi 1.20.7

VRChat API Client for Rust
Documentation
/*
 * VRChat API Documentation
 *
 *
 * Contact: vrchatapi.lpv0t@aries.fyi
 * Generated by: https://openapi-generator.tech
 */

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,
        }
    }
}