pub struct GameProfile {
pub uuid: Uuid,
pub name: String,
pub properties: Arc<GameProfileProperties>,
}
Expand description
Information about the player that’s usually stored on Mojang’s servers.
Fields§
§uuid: Uuid
The UUID of the player.
Typically a UUIDv4 for online-mode players and UUIDv3 for offline-mode players.
name: String
The username of the player.
Limited to 16 bytes.
properties: Arc<GameProfileProperties>
The properties of the player, including their in-game skin and cape.
This is an Arc
to make it cheaper to clone.
Implementations§
Trait Implementations§
Source§impl AzaleaRead for GameProfile
impl AzaleaRead for GameProfile
Source§impl AzaleaWrite for GameProfile
impl AzaleaWrite for GameProfile
Source§impl Clone for GameProfile
impl Clone for GameProfile
Source§fn clone(&self) -> GameProfile
fn clone(&self) -> GameProfile
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 GameProfile
impl Debug for GameProfile
Source§impl Default for GameProfile
impl Default for GameProfile
Source§fn default() -> GameProfile
fn default() -> GameProfile
Returns the “default value” for a type. Read more
Source§impl From<GameProfile> for SerializableGameProfile
impl From<GameProfile> for SerializableGameProfile
Source§fn from(value: GameProfile) -> Self
fn from(value: GameProfile) -> Self
Converts to this type from the input type.
Source§impl From<SerializableGameProfile> for GameProfile
impl From<SerializableGameProfile> for GameProfile
Source§fn from(value: SerializableGameProfile) -> Self
fn from(value: SerializableGameProfile) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GameProfile
impl PartialEq for GameProfile
Source§impl Serialize for GameProfile
impl Serialize for GameProfile
impl Eq for GameProfile
impl StructuralPartialEq for GameProfile
Auto Trait Implementations§
impl Freeze for GameProfile
impl RefUnwindSafe for GameProfile
impl Send for GameProfile
impl Sync for GameProfile
impl Unpin for GameProfile
impl UnwindSafe for GameProfile
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.