pub struct CloudHomeConfig {Show 14 fields
pub provider: Option<CloudProvider>,
pub s3_bucket: Option<String>,
pub s3_region: Option<String>,
pub s3_endpoint: Option<String>,
pub s3_key_prefix: Option<String>,
pub s3_serial: Option<CustomS3Serial>,
pub s3_exact_slots: Option<CustomS3ExactSlots>,
pub google_drive_folder_id: Option<String>,
pub dropbox_folder_path: Option<String>,
pub onedrive_drive_id: Option<String>,
pub onedrive_folder_id: Option<String>,
pub cloudkit_owner_name: Option<String>,
pub cloudkit_zone_name: Option<String>,
pub storage: HomeStorage,
}Expand description
The cloud home: which provider backs sync and its per-provider settings. One cohesive unit — connecting picks a provider and fills its fields; disconnecting resets the whole thing to default.
Fields§
§provider: Option<CloudProvider>Selected provider. None = not configured.
s3_bucket: Option<String>§s3_region: Option<String>§s3_endpoint: Option<String>§s3_key_prefix: Option<String>§s3_serial: Option<CustomS3Serial>§s3_exact_slots: Option<CustomS3ExactSlots>§google_drive_folder_id: Option<String>§dropbox_folder_path: Option<String>§onedrive_drive_id: Option<String>§onedrive_folder_id: Option<String>§cloudkit_owner_name: Option<String>§cloudkit_zone_name: Option<String>§storage: HomeStorageHow this home stores its objects: opaque (HomeStorage::Opaque) or
browsable (HomeStorage::Browsable). Drives both the at-rest cipher and
the blob-path scheme — see HomeStorage.
Trait Implementations§
Source§impl Clone for CloudHomeConfig
impl Clone for CloudHomeConfig
Source§fn clone(&self) -> CloudHomeConfig
fn clone(&self) -> CloudHomeConfig
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 CloudHomeConfig
impl Debug for CloudHomeConfig
Source§impl Default for CloudHomeConfig
impl Default for CloudHomeConfig
Source§fn default() -> CloudHomeConfig
fn default() -> CloudHomeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudHomeConfig
impl<'de> Deserialize<'de> for CloudHomeConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CloudHomeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CloudHomeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CloudHomeConfig
impl PartialEq for CloudHomeConfig
Source§impl Serialize for CloudHomeConfig
impl Serialize for CloudHomeConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CloudHomeConfig
Auto Trait Implementations§
impl Freeze for CloudHomeConfig
impl RefUnwindSafe for CloudHomeConfig
impl Send for CloudHomeConfig
impl Sync for CloudHomeConfig
impl Unpin for CloudHomeConfig
impl UnsafeUnpin for CloudHomeConfig
impl UnwindSafe for CloudHomeConfig
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.