pub struct AuthenticateResponse {
pub access_token: String,
pub client_token: Uuid,
pub available_profiles: Vec<Profile>,
pub selected_profile: Option<Profile>,
pub user: Option<User>,
}
Expand description
Response body from Mojang server
Fields§
§access_token: String
Hexadecimal or JSON-Web-Token (unconfirmed) [The normal accessToken can be found in the payload of the JWT (second by ‘.’ separated part as Base64 encoded JSON object), in key “yggt”].
client_token: Uuid
The same as sent.
available_profiles: Vec<Profile>
Available profiles, only present if the agent field was received.
selected_profile: Option<Profile>
§user: Option<User>
Only present if request_user
is set.
Trait Implementations§
Source§impl Debug for AuthenticateResponse
impl Debug for AuthenticateResponse
Source§impl<'de> Deserialize<'de> for AuthenticateResponse
impl<'de> Deserialize<'de> for AuthenticateResponse
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 AuthenticateResponse
impl RefUnwindSafe for AuthenticateResponse
impl Send for AuthenticateResponse
impl Sync for AuthenticateResponse
impl Unpin for AuthenticateResponse
impl UnwindSafe for AuthenticateResponse
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