pub struct CloudHomeConfig {
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 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_is_shared: bool,
pub http_url: Option<String>,
}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>§google_drive_folder_id: Option<String>§dropbox_folder_path: Option<String>§onedrive_drive_id: Option<String>§onedrive_folder_id: Option<String>Whether this library’s CloudKit zone is shared (joiner) vs owned (creator).
http_url: Option<String>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<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 CloudHomeConfig
impl RefUnwindSafe for CloudHomeConfig
impl Send for CloudHomeConfig
impl Sync for CloudHomeConfig
impl Unpin 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.