pub enum CloudHomeCredentials {
S3 {
access_key: String,
secret_key: String,
},
OAuth {
token_json: String,
},
None,
}Expand description
Credentials for the cloud home, stored as a single JSON keyring entry.
Debug is hand-written so the S3 secret_key and the OAuth token_json
print as <redacted> — {:?} in an error path cannot leak them.
Variants§
S3
S3-compatible providers: access key + secret key.
OAuth
Consumer cloud providers (Google Drive, Dropbox, OneDrive): OAuth token JSON.
None
iCloud: no credentials needed (macOS handles auth).
Trait Implementations§
Source§impl Clone for CloudHomeCredentials
impl Clone for CloudHomeCredentials
Source§fn clone(&self) -> CloudHomeCredentials
fn clone(&self) -> CloudHomeCredentials
Returns a duplicate of the value. Read more
1.0.0 · 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 CloudHomeCredentials
impl Debug for CloudHomeCredentials
Source§impl<'de> Deserialize<'de> for CloudHomeCredentials
impl<'de> Deserialize<'de> for CloudHomeCredentials
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 CloudHomeCredentials
impl RefUnwindSafe for CloudHomeCredentials
impl Send for CloudHomeCredentials
impl Sync for CloudHomeCredentials
impl Unpin for CloudHomeCredentials
impl UnsafeUnpin for CloudHomeCredentials
impl UnwindSafe for CloudHomeCredentials
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