#[non_exhaustive]pub struct PlayerInfo {
pub name: Box<str>,
pub game_mode: i32,
pub ping: i32,
pub display_name: Option<Box<str>>,
pub textures: Option<Box<str>>,
}Expand description
A tab-list entry (#[non_exhaustive]: read-only for callers, fields may be added).
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: Box<str>Profile name.
game_mode: i32Game mode.
ping: i32Latency in ms.
display_name: Option<Box<str>>Display name (raw chat JSON), if set.
textures: Option<Box<str>>The base64 "textures" profile property as sent (only with Config::skins; its
signature is not kept). Decoded it is JSON with the skin and cape URLs.
Trait Implementations§
Source§impl Clone for PlayerInfo
impl Clone for PlayerInfo
Source§impl Debug for PlayerInfo
impl Debug for PlayerInfo
impl Eq for PlayerInfo
Source§impl PartialEq for PlayerInfo
impl PartialEq for PlayerInfo
impl StructuralPartialEq for PlayerInfo
Auto Trait Implementations§
impl Forget for PlayerInfo
impl Freeze for PlayerInfo
impl RefUnwindSafe for PlayerInfo
impl Send for PlayerInfo
impl Sync for PlayerInfo
impl Unpin for PlayerInfo
impl UnsafeUnpin for PlayerInfo
impl UnwindSafe for PlayerInfo
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