pub struct SkinSchema {
pub code: String,
pub name: String,
pub description: String,
pub default: bool,
pub price: Option<i32>,
}Fields§
§code: StringThe code of the skin. This is the skin’s unique identifier.
name: StringDisplay name of the skin.
description: StringDescription of the skin and how to obtain it.
default: boolWhether this skin is available to all players by default.
price: Option<i32>Price in gems to purchase this skin. Null if not purchasable.
Implementations§
Source§impl SkinSchema
impl SkinSchema
Trait Implementations§
Source§impl Clone for SkinSchema
impl Clone for SkinSchema
Source§fn clone(&self) -> SkinSchema
fn clone(&self) -> SkinSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SkinSchema
impl Debug for SkinSchema
Source§impl Default for SkinSchema
impl Default for SkinSchema
Source§fn default() -> SkinSchema
fn default() -> SkinSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SkinSchema
impl<'de> Deserialize<'de> for SkinSchema
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 SkinSchema
impl PartialEq for SkinSchema
Source§fn eq(&self, other: &SkinSchema) -> bool
fn eq(&self, other: &SkinSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SkinSchema
impl Serialize for SkinSchema
impl StructuralPartialEq for SkinSchema
Auto Trait Implementations§
impl Freeze for SkinSchema
impl RefUnwindSafe for SkinSchema
impl Send for SkinSchema
impl Sync for SkinSchema
impl Unpin for SkinSchema
impl UnsafeUnpin for SkinSchema
impl UnwindSafe for SkinSchema
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