Struct vrchatapi::models::avatar::Avatar

source ·
pub struct Avatar {
Show 18 fields pub asset_url: Option<String>, pub asset_url_object: Option<Value>, pub author_id: String, pub author_name: String, pub created_at: String, pub description: String, pub featured: bool, pub id: String, pub image_url: String, pub name: String, pub release_status: ReleaseStatus, pub tags: Vec<String>, pub thumbnail_image_url: String, pub unity_package_url: String, pub unity_package_url_object: Box<AvatarUnityPackageUrlObject>, pub unity_packages: Vec<UnityPackage>, pub updated_at: String, pub version: i32,
}
Expand description

Avatar :

Fields§

§asset_url: Option<String>

Not present from general serach /avatars, only on specific requests /avatars/{avatarId}.

§asset_url_object: Option<Value>

Not present from general serach /avatars, only on specific requests /avatars/{avatarId}. Deprecation: Object has unknown usage/fields, and is always empty. Use normal Url field instead.

§author_id: 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.

§author_name: String§created_at: String§description: String§featured: bool§id: String§image_url: String§name: String§release_status: ReleaseStatus§tags: Vec<String>
§thumbnail_image_url: String§unity_package_url: String§unity_package_url_object: Box<AvatarUnityPackageUrlObject>§unity_packages: Vec<UnityPackage>§updated_at: String§version: i32

Implementations§

source§

impl Avatar

source

pub fn new( author_id: String, author_name: String, created_at: String, description: String, featured: bool, id: String, image_url: String, name: String, release_status: ReleaseStatus, tags: Vec<String>, thumbnail_image_url: String, unity_package_url: String, unity_package_url_object: AvatarUnityPackageUrlObject, unity_packages: Vec<UnityPackage>, updated_at: String, version: i32 ) -> Avatar

Trait Implementations§

source§

impl Clone for Avatar

source§

fn clone(&self) -> Avatar

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Avatar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Avatar

source§

fn default() -> Avatar

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Avatar

source§

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 Avatar

source§

fn eq(&self, other: &Avatar) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Avatar

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for Avatar

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Err = <U as TryFrom<T>>::Err

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,