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