pub struct MinecraftAuthorizationFlow<C> { /* private fields */ }Expand description
The flow for authenticating with a Microsoft access token and getting a Minecraft access token.
Implementations§
Source§impl<C> MinecraftAuthorizationFlow<C>
impl<C> MinecraftAuthorizationFlow<C>
Sourcepub const fn new(http_client: C) -> Self
pub const fn new(http_client: C) -> Self
Creates a new MinecraftAuthorizationFlow using the given HttpClient.
Source§impl<C: HttpClient> MinecraftAuthorizationFlow<C>
impl<C: HttpClient> MinecraftAuthorizationFlow<C>
Sourcepub async fn exchange_microsoft_token(
&self,
microsoft_access_token: impl AsRef<str>,
) -> Result<MinecraftAuthenticationResponse, MinecraftAuthorizationError<C::Error>>
pub async fn exchange_microsoft_token( &self, microsoft_access_token: impl AsRef<str>, ) -> Result<MinecraftAuthenticationResponse, MinecraftAuthorizationError<C::Error>>
Authenticates with the Microsoft identity platform using the given Microsoft access token and returns a MinecraftAuthenticationResponse that contains the Minecraft access token.
Auto Trait Implementations§
impl<C> Freeze for MinecraftAuthorizationFlow<C>where
C: Freeze,
impl<C> RefUnwindSafe for MinecraftAuthorizationFlow<C>where
C: RefUnwindSafe,
impl<C> Send for MinecraftAuthorizationFlow<C>where
C: Send,
impl<C> Sync for MinecraftAuthorizationFlow<C>where
C: Sync,
impl<C> Unpin for MinecraftAuthorizationFlow<C>where
C: Unpin,
impl<C> UnsafeUnpin for MinecraftAuthorizationFlow<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for MinecraftAuthorizationFlow<C>where
C: UnwindSafe,
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