vrchatapi 1.22.2-nightly.2

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

#[serde_with::serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FavoriteGroupContents {
    #[serde(rename = "favorites")]
    pub favorites: Vec<models::FavoriteGroupContentsEntry>,
    #[serde(rename = "totalCount")]
    pub total_count: i32,
}

impl FavoriteGroupContents {
    pub fn new(
        favorites: Vec<models::FavoriteGroupContentsEntry>,
        total_count: i32,
    ) -> FavoriteGroupContents {
        FavoriteGroupContents {
            favorites,
            total_count,
        }
    }
}