pub struct MinecraftAuthenticationResponse { /* private fields */ }Expand description
The response from Minecraft when attempting to authenticate with an xbox token
Implementations§
Source§impl MinecraftAuthenticationResponse
impl MinecraftAuthenticationResponse
Sourcepub fn username(&self) -> &String
pub fn username(&self) -> &String
UUID of the Xbox account. Please note that this is not the Minecraft player’s UUID
Sourcepub fn access_token(&self) -> &MinecraftAccessToken
pub fn access_token(&self) -> &MinecraftAccessToken
The minecraft JWT access token
Sourcepub fn token_type(&self) -> &MinecraftTokenType
pub fn token_type(&self) -> &MinecraftTokenType
The type of access token
Source§impl MinecraftAuthenticationResponse
impl MinecraftAuthenticationResponse
Sourcepub fn expires_in(&self) -> u32
pub fn expires_in(&self) -> u32
How many seconds until the token expires
Trait Implementations§
Source§impl Clone for MinecraftAuthenticationResponse
impl Clone for MinecraftAuthenticationResponse
Source§fn clone(&self) -> MinecraftAuthenticationResponse
fn clone(&self) -> MinecraftAuthenticationResponse
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<'de> Deserialize<'de> for MinecraftAuthenticationResponse
impl<'de> Deserialize<'de> for MinecraftAuthenticationResponse
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
Auto Trait Implementations§
impl Freeze for MinecraftAuthenticationResponse
impl RefUnwindSafe for MinecraftAuthenticationResponse
impl Send for MinecraftAuthenticationResponse
impl Sync for MinecraftAuthenticationResponse
impl Unpin for MinecraftAuthenticationResponse
impl UnwindSafe for MinecraftAuthenticationResponse
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