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§fn clone(&self) -> GdriveAuth
fn clone(&self) -> GdriveAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GdriveAuth
impl Debug for GdriveAuth
Source§impl Default for GdriveAuth
impl Default for GdriveAuth
Source§fn default() -> GdriveAuth
fn default() -> GdriveAuth
Returns the “default value” for a type. Read more
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