pub struct MinecraftSession {
pub username: String,
pub user_type: Option<MinecraftSessionUserType>,
pub uuid: String,
pub access_token: String,
pub authlib_server: Option<AuthLibConfiguration>,
}
Fields§
§username: String
Username of user
user_type: Option<MinecraftSessionUserType>
User type (mojang/legacy)
uuid: String
UUID
access_token: String
Access Token
authlib_server: Option<AuthLibConfiguration>
Adds support for authlib-injector.
This field is responsible for a reference to the server that will be used for authorization, etc.
Trait Implementations§
Source§impl Clone for MinecraftSession
impl Clone for MinecraftSession
Source§fn clone(&self) -> MinecraftSession
fn clone(&self) -> MinecraftSession
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 Debug for MinecraftSession
impl Debug for MinecraftSession
Source§impl Default for MinecraftSession
impl Default for MinecraftSession
Source§fn default() -> MinecraftSession
fn default() -> MinecraftSession
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MinecraftSession
impl RefUnwindSafe for MinecraftSession
impl Send for MinecraftSession
impl Sync for MinecraftSession
impl Unpin for MinecraftSession
impl UnwindSafe for MinecraftSession
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