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 access_token(&self) -> &MinecraftAccessToken
pub fn access_token(&self) -> &MinecraftAccessToken
The minecraft JWT access token
sourcepub fn token_type(&self) -> &String
pub fn token_type(&self) -> &String
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 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<'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