mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
40 lines
846 B
Rust
40 lines
846 B
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
/// Favorite :
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
|
pub struct Favorite {
|
|
/// MUST be either AvatarID, UserID or WorldID.
|
|
#[serde(rename = "favoriteId")]
|
|
pub favorite_id: String,
|
|
#[serde(rename = "id")]
|
|
pub id: String,
|
|
///
|
|
#[serde(rename = "tags")]
|
|
pub tags: Vec<crate::models::tags::Tags>,
|
|
#[serde(rename = "type")]
|
|
pub r#type: crate::models::FavoriteType,
|
|
}
|
|
|
|
impl Favorite {
|
|
///
|
|
pub fn new(favorite_id: String, id: String, tags: Vec<crate::models::tags::Tags>, r#type: crate::models::FavoriteType) -> Favorite {
|
|
Favorite {
|
|
favorite_id,
|
|
id,
|
|
tags,
|
|
r#type,
|
|
}
|
|
}
|
|
}
|
|
|
|
|