pub struct GmailAuth { /* private fields */ }Implementations§
Source§impl GmailAuth
impl GmailAuth
Sourcepub fn with_bundled(token_ref: String) -> Result<Self, AuthError>
pub fn with_bundled(token_ref: String) -> Result<Self, AuthError>
Create with bundled credentials, falling back to error if not compiled in.
Source§impl GmailAuth
impl GmailAuth
pub fn new(client_id: String, client_secret: String, token_ref: String) -> Self
pub fn with_refresh_token( client_id: String, client_secret: String, refresh_token: String, ) -> Self
pub async fn interactive_auth(&mut self) -> Result<(), AuthError>
pub async fn load_existing(&mut self) -> Result<(), AuthError>
pub async fn access_token(&self) -> Result<String, AuthError>
Auto Trait Implementations§
impl Freeze for GmailAuth
impl !RefUnwindSafe for GmailAuth
impl Send for GmailAuth
impl Sync for GmailAuth
impl Unpin for GmailAuth
impl UnsafeUnpin for GmailAuth
impl !UnwindSafe for GmailAuth
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