pub struct OAuthFlow { /* private fields */ }Implementations§
Source§impl OAuthFlow
impl OAuthFlow
pub fn new(config: OAuthConfig) -> Result<Self>
Sourcepub fn with_template(self, template: OAuthTemplate) -> Self
pub fn with_template(self, template: OAuthTemplate) -> Self
Set the branding used by the browser callback page.
pub async fn login(&self, timeout: Duration) -> Result<Token>
pub async fn refresh(&self, token: &Token) -> Result<Token>
pub async fn client_credentials(&self) -> Result<Token>
Auto Trait Implementations§
impl !RefUnwindSafe for OAuthFlow
impl !UnwindSafe for OAuthFlow
impl Freeze for OAuthFlow
impl Send for OAuthFlow
impl Sync for OAuthFlow
impl Unpin for OAuthFlow
impl UnsafeUnpin for OAuthFlow
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