Struct vrchatapi::models::add_favorite_request::AddFavoriteRequest
source · pub struct AddFavoriteRequest {
pub type: FavoriteType,
pub favorite_id: String,
pub tags: Vec<String>,
}Fields§
§type: FavoriteType§favorite_id: StringMust be either AvatarID, WorldID or UserID.
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.
Implementations§
source§impl AddFavoriteRequest
impl AddFavoriteRequest
pub fn new( type: FavoriteType, favorite_id: String, tags: Vec<String> ) -> AddFavoriteRequest
Trait Implementations§
source§impl Clone for AddFavoriteRequest
impl Clone for AddFavoriteRequest
source§fn clone(&self) -> AddFavoriteRequest
fn clone(&self) -> AddFavoriteRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AddFavoriteRequest
impl Debug for AddFavoriteRequest
source§impl Default for AddFavoriteRequest
impl Default for AddFavoriteRequest
source§fn default() -> AddFavoriteRequest
fn default() -> AddFavoriteRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AddFavoriteRequest
impl<'de> Deserialize<'de> for AddFavoriteRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AddFavoriteRequest
impl PartialEq for AddFavoriteRequest
source§fn eq(&self, other: &AddFavoriteRequest) -> bool
fn eq(&self, other: &AddFavoriteRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AddFavoriteRequest
impl Serialize for AddFavoriteRequest
impl StructuralPartialEq for AddFavoriteRequest
Auto Trait Implementations§
impl RefUnwindSafe for AddFavoriteRequest
impl Send for AddFavoriteRequest
impl Sync for AddFavoriteRequest
impl Unpin for AddFavoriteRequest
impl UnwindSafe for AddFavoriteRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more