pub struct AuthOpts<'a> {
pub check_ownership: bool,
pub cache_file: Option<PathBuf>,
pub client_id: Option<&'a str>,
pub scope: Option<&'a str>,
}
Fields§
§check_ownership: bool
Whether we should check if the user actually owns the game.
This will fail if the user has Xbox Game Pass. Note that this isn’t really necessary, since getting the user profile will check this anyways.
cache_file: Option<PathBuf>
The directory to store the cache in.
If this is None
, azalea-auth will not keep its own cache.
client_id: Option<&'a str>
An override for the Microsoft Client ID to authenticate with.
The default client ID is for Nintendo Switch, but you can replace this if you’d like authentication to have your own branding.
For more information about this, see https://minecraft.wiki/w/Microsoft_authentication#Microsoft_OAuth2_flow.
scope: Option<&'a str>
An override for the OAuth2 scope to authenticate with.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AuthOpts<'a>
impl<'a> RefUnwindSafe for AuthOpts<'a>
impl<'a> Send for AuthOpts<'a>
impl<'a> Sync for AuthOpts<'a>
impl<'a> Unpin for AuthOpts<'a>
impl<'a> UnwindSafe for AuthOpts<'a>
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