pub struct MetaOAuth {
pub device_authorization_url: String,
pub device_token_url: String,
pub api_key_mint_url: String,
}Expand description
The Meta sign-in and its endpoints.
Fields§
Device authorization endpoint.
device_token_url: StringDevice token endpoint.
api_key_mint_url: StringModel API key mint endpoint.
Trait Implementations§
Source§impl OAuthProvider for MetaOAuth
impl OAuthProvider for MetaOAuth
Source§fn login_label(&self) -> Option<&str>
fn login_label(&self) -> Option<&str>
Label of the login menu entry, when the provider sets one.
Source§fn login<'a>(
&'a self,
interaction: &'a Interaction,
_options: &'a LoginOptions,
) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
fn login<'a>( &'a self, interaction: &'a Interaction, _options: &'a LoginOptions, ) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
Runs the sign-in.
Source§fn refresh<'a>(
&'a self,
credential: &'a OAuthCredential,
cancel: &'a CancellationToken,
) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
fn refresh<'a>( &'a self, credential: &'a OAuthCredential, cancel: &'a CancellationToken, ) -> BoxFuture<'a, Result<OAuthCredential, AuthError>>
Exchanges the refresh token for a new credential.
Source§fn is_subscription(&self) -> bool
fn is_subscription(&self) -> bool
Whether the account is a subscription, which the login menu labels.
Auto Trait Implementations§
impl Forget for MetaOAuth
impl Freeze for MetaOAuth
impl RefUnwindSafe for MetaOAuth
impl Send for MetaOAuth
impl Sync for MetaOAuth
impl Unpin for MetaOAuth
impl UnsafeUnpin for MetaOAuth
impl UnwindSafe for MetaOAuth
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