/* * 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, } impl AddFavoriteRequest { pub fn new(r#type: crate::models::FavoriteType, favorite_id: String, tags: Vec) -> AddFavoriteRequest { AddFavoriteRequest { r#type, favorite_id, tags, } } }