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 Inventory {
    #[serde(rename = "data")]
    pub data: Vec<models::InventoryItem>,
    #[serde(rename = "totalCount")]
    pub total_count: i32,
}

impl Inventory {
    pub fn new(data: Vec<models::InventoryItem>, total_count: i32) -> Inventory {
        Inventory { data, total_count }
    }
}