pub struct GdriveAuth {
pub client_id: String,
pub client_secret: String,
pub access_token: String,
pub refresh_token: String,
}Expand description
ディスクに保存する Drive 認証状態。client_id/secret はユーザーが Google Cloud で 発行したものを事前に書き込んでおく(このアプリからは編集しない)。token 類は デバイスフロー成功後に書き戻す。
Fields§
§client_id: String§client_secret: String§access_token: String§refresh_token: StringImplementations§
Source§impl GdriveAuth
impl GdriveAuth
pub fn has_client(&self) -> bool
pub fn is_logged_in(&self) -> bool
Trait Implementations§
Source§impl Clone for GdriveAuth
impl Clone for GdriveAuth
Source§impl Debug for GdriveAuth
impl Debug for GdriveAuth
Auto Trait Implementations§
impl Freeze for GdriveAuth
impl RefUnwindSafe for GdriveAuth
impl Send for GdriveAuth
impl Sync for GdriveAuth
impl Unpin for GdriveAuth
impl UnsafeUnpin for GdriveAuth
impl UnwindSafe for GdriveAuth
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