Struct Identity
pub struct Identity {
pub name: String,
pub profession: Profession,
pub spec: u32,
pub race: Race,
pub map_id: u32,
pub world_id: u32,
pub team_color_id: u32,
pub commander: bool,
pub fov: f32,
pub ui_scale: UIScaling,
}Expand description
Information about player identity.
Parsed as JSON from the identity field in [LinkedMem].
Fields§
§name: StringCharacter name.
profession: ProfessionCharacter profession.
spec: u32Equipped 3rd specialization.
0 if no specialization is present.
See API:2/specializations for details.
race: RaceCharacter race.
map_id: u32Current map id.
See API:2/maps.
world_id: u32Shard id from [Context].
Formerly character homeworld per API:2/worlds. Not usable since the switch to the megaserver system.
team_color_id: u32Team color.
See API:2/colors.
commander: boolWhether the character has a commander tag active.
fov: f32Vertical field of view.
ui_scale: UIScalingCurrent user UI scaling.
Trait Implementations§
§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Identity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Identity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Identity
impl Serialize for Identity
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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