#[non_exhaustive]pub struct AvatarDecorationData {
pub asset: ImageHash,
pub sku_id: SkuId,
}Expand description
The data for a User’s avatar decoration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.asset: ImageHashThe avatar decoration hash
sku_id: SkuIdid of the avatar decoration’s SKU
Implementations§
Source§impl AvatarDecorationData
impl AvatarDecorationData
Sourcepub fn decoration_url(&self) -> String
pub fn decoration_url(&self) -> String
Returns the formatted URL of the decoration.
Trait Implementations§
Source§impl Clone for AvatarDecorationData
impl Clone for AvatarDecorationData
Source§fn clone(&self) -> AvatarDecorationData
fn clone(&self) -> AvatarDecorationData
Returns a duplicate 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 AvatarDecorationData
impl Debug for AvatarDecorationData
Source§impl<'de> Deserialize<'de> for AvatarDecorationData
impl<'de> Deserialize<'de> for AvatarDecorationData
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 Serialize for AvatarDecorationData
impl Serialize for AvatarDecorationData
impl Copy for AvatarDecorationData
Auto Trait Implementations§
impl Freeze for AvatarDecorationData
impl RefUnwindSafe for AvatarDecorationData
impl Send for AvatarDecorationData
impl Sync for AvatarDecorationData
impl Unpin for AvatarDecorationData
impl UnwindSafe for AvatarDecorationData
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