pub struct Portrait {
pub gender: Gender,
pub hair_color: u8,
pub hair: u8,
pub mouth: u8,
pub brows: u8,
pub eyes: u8,
pub beards: u8,
pub nose: u8,
pub ears: u8,
pub extra: u8,
pub horns: u8,
pub special_portrait: i64,
}Expand description
All the exclusively cosmetic info necessary to build a player image, that is otherwise useless. As these values might change their based on each other, some of them are not fully parsed (to a more descriptive enum)
Fields§
§gender: GenderThe gender (m/w)
hair_color: u8§hair: u8§mouth: u8§brows: u8§eyes: u8§beards: u8§nose: u8§ears: u8§extra: u8§horns: u8§special_portrait: i64Influencers get a special portrait. Otherwise this should be 0
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Portrait
impl<'de> Deserialize<'de> for Portrait
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
impl Eq for Portrait
impl StructuralPartialEq for Portrait
Auto Trait Implementations§
impl Freeze for Portrait
impl RefUnwindSafe for Portrait
impl Send for Portrait
impl Sync for Portrait
impl Unpin for Portrait
impl UnwindSafe for Portrait
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.