pub struct DropboxConfig {
pub app_key: String,
pub app_secret: String,
pub refresh_token: String,
}Expand description
One consumer’s OAuth authorisation. All three fields are durable secrets:
the refresh token never expires and never rotates on use, so this document
is the blast radius of the mount and is never read back out (see
ConfigRoleStore).
Fields§
§app_key: String§app_secret: String§refresh_token: StringObtained once, interactively, with token_access_type=offline. Without
that parameter Dropbox issues no refresh token at all.
Trait Implementations§
Source§impl Clone for DropboxConfig
impl Clone for DropboxConfig
Source§impl Debug for DropboxConfig
impl Debug for DropboxConfig
Source§impl<'de> Deserialize<'de> for DropboxConfig
impl<'de> Deserialize<'de> for DropboxConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DropboxConfig
impl RefUnwindSafe for DropboxConfig
impl Send for DropboxConfig
impl Sync for DropboxConfig
impl Unpin for DropboxConfig
impl UnsafeUnpin for DropboxConfig
impl UnwindSafe for DropboxConfig
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