Struct TextProfile
#[non_exhaustive]pub struct TextProfile {
pub name: Option<String>,
pub id: Option<[u64; 2]>,
pub properties: Vec<TextProfileProperty>,
pub metadata: Tag,
}Expand description
A player profile, including ordered signed properties and unknown data.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Player name in U+0021..U+007E, at most 16 characters (ExtraCodecs.PLAYER_NAME).
id: Option<[u64; 2]>UUID as high and low halves.
properties: Vec<TextProfileProperty>Ordered signed records; unsigned map values retain their order within each name.
metadata: TagUnknown profile fields, as a compound.
Trait Implementations§
§impl Clone for TextProfile
impl Clone for TextProfile
§fn clone(&self) -> TextProfile
fn clone(&self) -> TextProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextProfile
impl Debug for TextProfile
§impl Default for TextProfile
impl Default for TextProfile
§fn default() -> TextProfile
fn default() -> TextProfile
Returns the “default value” for a type. Read more
impl Eq for TextProfile
§impl PartialEq for TextProfile
impl PartialEq for TextProfile
impl StructuralPartialEq for TextProfile
Auto Trait Implementations§
impl Freeze for TextProfile
impl RefUnwindSafe for TextProfile
impl Send for TextProfile
impl Sync for TextProfile
impl Unpin for TextProfile
impl UnsafeUnpin for TextProfile
impl UnwindSafe for TextProfile
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