pub enum CloudHomeJoinInfo {
S3 {
bucket: String,
region: String,
endpoint: Option<String>,
access_key: String,
secret_key: String,
key_prefix: Option<String>,
},
GoogleDrive {
folder_id: String,
},
Dropbox {
folder_path: String,
},
OneDrive {
drive_id: String,
folder_id: String,
},
CloudKit,
CloudKitShare {
share_url: String,
owner_name: String,
zone_name: String,
},
}Expand description
Information needed to join a cloud home from another device.
The compact tagged shape (short t tags) is shared by invite codes and
restore codes — both wrap this same type, so a code adding neither weight
nor a second serde shape to carry around.
Debug is hand-written so the S3 secret_key prints as <redacted> —
{:?} in an error path cannot leak the storage credential.
Variants§
S3
Fields
GoogleDrive
Dropbox
folder_path matches CloudHomeConfig.dropbox_folder_path, whose
dropbox_ is the flat-config provider prefix (like s3_bucket) — one
name for this value everywhere it’s carried.
OneDrive
CloudKit
Implementations§
Source§impl CloudHomeJoinInfo
impl CloudHomeJoinInfo
pub fn cloud_provider(&self) -> CloudProvider
Trait Implementations§
Source§impl Clone for CloudHomeJoinInfo
impl Clone for CloudHomeJoinInfo
Source§fn clone(&self) -> CloudHomeJoinInfo
fn clone(&self) -> CloudHomeJoinInfo
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 CloudHomeJoinInfo
impl Debug for CloudHomeJoinInfo
Source§impl<'de> Deserialize<'de> for CloudHomeJoinInfo
impl<'de> Deserialize<'de> for CloudHomeJoinInfo
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
Source§impl PartialEq for CloudHomeJoinInfo
impl PartialEq for CloudHomeJoinInfo
Source§impl Serialize for CloudHomeJoinInfo
impl Serialize for CloudHomeJoinInfo
impl Eq for CloudHomeJoinInfo
impl StructuralPartialEq for CloudHomeJoinInfo
Auto Trait Implementations§
impl Freeze for CloudHomeJoinInfo
impl RefUnwindSafe for CloudHomeJoinInfo
impl Send for CloudHomeJoinInfo
impl Sync for CloudHomeJoinInfo
impl Unpin for CloudHomeJoinInfo
impl UnsafeUnpin for CloudHomeJoinInfo
impl UnwindSafe for CloudHomeJoinInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.