pub struct Profile {
pub name: Option<PlayerName>,
pub id: Option<Uuid>,
pub properties: Vec<ProfileProperty>,
pub texture: Option<ResourceLocation>,
pub cape: Option<ResourceLocation>,
pub elytra: Option<ResourceLocation>,
pub model: Option<PlayerModel>,
}Expand description
Player profile data used to render a player object.
Fields§
§name: Option<PlayerName>The player’s validated account name.
id: Option<Uuid>The player’s UUID.
properties: Vec<ProfileProperty>Signed or unsigned profile properties.
texture: Option<ResourceLocation>The player’s skin texture resource.
cape: Option<ResourceLocation>The player’s cape texture resource.
elytra: Option<ResourceLocation>The player’s elytra texture resource.
model: Option<PlayerModel>The geometry model used for the player skin.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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