[][src]Struct sage_auth::types::Profile

pub struct Profile {
    pub agent: Option<String>,
    pub id: Uuid,
    pub name: String,
    pub legacy: bool,
}

Account profile

Currently each account will only have one single profile, multiple profiles per account are however planned in the future. If a user attempts to log into a valid Mojang account with no attached Minecraft license, the authentication will be successful, but the response will not contain a selected_profile field, and the available_profiles array will be empty.

See also [https://wiki.vg/Authentication].

Fields

agent: Option<String>

Presumably same value as you sent in authenticate.

id: Uuid

Profile identifier.

name: String

Profile name.

legacy: bool

Only appears in the response if true. Default to false. Redundant to the newer legacyProfile.

Trait Implementations

impl Debug for Profile[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Profile

impl Send for Profile

impl Sync for Profile

impl Unpin for Profile

impl UnwindSafe for Profile

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