pub struct MsAuth {
pub client_id: String,
pub access_token: String,
pub refresh_token: String,
}Expand description
ディスクに保存する OneDrive 認証状態。Microsoft の device flow はパブリック クライアント向けで client_secret 不要のため GdriveAuth より単純。
Fields§
§client_id: String§access_token: String§refresh_token: StringImplementations§
Source§impl MsAuth
impl MsAuth
pub fn has_client(&self) -> bool
pub fn is_logged_in(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MsAuth
impl RefUnwindSafe for MsAuth
impl Send for MsAuth
impl Sync for MsAuth
impl Unpin for MsAuth
impl UnsafeUnpin for MsAuth
impl UnwindSafe for MsAuth
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