pub struct ServerAuthResponse {
pub id: Uuid,
pub name: String,
pub properties: Vec<ProfileProperty>,
}
Expand description
Represents the response received when performing server-side authentication with the Mojang API.
The response includes the player’s UUID, username,
and optionally some ProfileProperty
s, which may
represent, for example, the player’s skin.
Fields§
§id: Uuid
The UUID of the player.
name: String
The current username of the player.
properties: Vec<ProfileProperty>
The player’s profile properties.
Trait Implementations§
Source§impl Clone for ServerAuthResponse
impl Clone for ServerAuthResponse
Source§fn clone(&self) -> ServerAuthResponse
fn clone(&self) -> ServerAuthResponse
Returns a copy 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 ServerAuthResponse
impl Debug for ServerAuthResponse
Source§impl<'de> Deserialize<'de> for ServerAuthResponse
impl<'de> Deserialize<'de> for ServerAuthResponse
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
Source§impl PartialEq for ServerAuthResponse
impl PartialEq for ServerAuthResponse
Source§impl Serialize for ServerAuthResponse
impl Serialize for ServerAuthResponse
impl Eq for ServerAuthResponse
impl StructuralPartialEq for ServerAuthResponse
Auto Trait Implementations§
impl Freeze for ServerAuthResponse
impl RefUnwindSafe for ServerAuthResponse
impl Send for ServerAuthResponse
impl Sync for ServerAuthResponse
impl Unpin for ServerAuthResponse
impl UnwindSafe for ServerAuthResponse
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.