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 not set, caching is not done.
client_id: Option<&'a str>
If you choose to use your own Microsoft authentication instead of using Nintendo Switch, just put your client_id here.
scope: Option<&'a str>
If you want to use custom scope instead of default one, just put your scope here.
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