[][src]Struct sage_auth::auth::AuthenticateResponse

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>,
}

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

impl Debug for AuthenticateResponse[src]

impl<'de> Deserialize<'de> for AuthenticateResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,