DestinyCharacterCustomization

Struct DestinyCharacterCustomization 

Source
pub struct DestinyCharacterCustomization {
    pub personality: u32,
    pub face: u32,
    pub skin_color: u32,
    pub lip_color: u32,
    pub eye_color: u32,
    pub hair_colors: Option<Vec<u32>>,
    pub feature_colors: Option<Vec<u32>>,
    pub decal_color: u32,
    pub wear_helmet: bool,
    pub hair_index: i32,
    pub feature_index: i32,
    pub decal_index: i32,
}
Expand description

Raw data about the customization options chosen for a character’s face and appearance. You can look up the relevant class/race/gender combo in DestinyCharacterCustomizationOptionDefinition for the character, and then look up these values within the CustomizationOptions found to pull some data about their choices. Warning: not all of that data is meaningful. Some data has useful icons. Others have nothing, and are only meant for 3D rendering purposes (which we sadly do not expose yet)

Fields§

§personality: u32§face: u32§skin_color: u32§lip_color: u32§eye_color: u32§hair_colors: Option<Vec<u32>>§feature_colors: Option<Vec<u32>>§decal_color: u32§wear_helmet: bool§hair_index: i32§feature_index: i32§decal_index: i32

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for DestinyCharacterCustomization

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 Serialize for DestinyCharacterCustomization

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.
Source§

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