mirror of
https://github.com/mii443/vrchatapi-rust.git
synced 2025-08-22 15:45:35 +00:00
35 lines
938 B
Rust
35 lines
938 B
Rust
/*
|
|
* VRChat API Documentation
|
|
*
|
|
*
|
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
|
|
pub struct AddFavoriteRequest {
|
|
#[serde(rename = "type")]
|
|
pub r#type: crate::models::FavoriteType,
|
|
/// Must be either AvatarID, WorldID or UserID.
|
|
#[serde(rename = "favoriteId")]
|
|
pub favorite_id: String,
|
|
/// Tags indicate which group this favorite belongs to. Adding multiple groups makes it show up in all. Removing it from one in that case removes it from all.
|
|
#[serde(rename = "tags")]
|
|
pub tags: Vec<crate::models::tags::Tags>,
|
|
}
|
|
|
|
impl AddFavoriteRequest {
|
|
pub fn new(r#type: crate::models::FavoriteType, favorite_id: String, tags: Vec<crate::models::tags::Tags>) -> AddFavoriteRequest {
|
|
AddFavoriteRequest {
|
|
r#type,
|
|
favorite_id,
|
|
tags,
|
|
}
|
|
}
|
|
}
|
|
|
|
|