mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
52 lines
1.4 KiB
Rust
52 lines
1.4 KiB
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
/// FavoriteGroup :
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
|
pub struct FavoriteGroup {
|
|
#[serde(rename = "displayName")]
|
|
pub display_name: String,
|
|
#[serde(rename = "id")]
|
|
pub id: String,
|
|
#[serde(rename = "name")]
|
|
pub name: String,
|
|
#[serde(rename = "ownerDisplayName")]
|
|
pub owner_display_name: String,
|
|
/// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
|
|
#[serde(rename = "ownerId")]
|
|
pub owner_id: String,
|
|
///
|
|
#[serde(rename = "tags")]
|
|
pub tags: Vec<String>,
|
|
#[serde(rename = "type")]
|
|
pub r#type: crate::models::FavoriteType,
|
|
#[serde(rename = "visibility")]
|
|
pub visibility: crate::models::FavoriteGroupVisibility,
|
|
}
|
|
|
|
impl FavoriteGroup {
|
|
///
|
|
pub fn new(display_name: String, id: String, name: String, owner_display_name: String, owner_id: String, tags: Vec<String>, r#type: crate::models::FavoriteType, visibility: crate::models::FavoriteGroupVisibility) -> FavoriteGroup {
|
|
FavoriteGroup {
|
|
display_name,
|
|
id,
|
|
name,
|
|
owner_display_name,
|
|
owner_id,
|
|
tags,
|
|
r#type,
|
|
visibility,
|
|
}
|
|
}
|
|
}
|
|
|
|
|