pub enum SyncProvider {
Git {
repo_url: String,
branch: String,
auth_token: Option<String>,
},
Cloud {
service_url: String,
api_key: String,
project_id: String,
},
Local {
directory_path: String,
watch_changes: bool,
},
}
Expand description
Synchronization provider
Variants§
Git
Git-based synchronization
Fields
Cloud
Cloud-based synchronization
Local
Local file system synchronization
Trait Implementations§
Source§impl Clone for SyncProvider
impl Clone for SyncProvider
Source§fn clone(&self) -> SyncProvider
fn clone(&self) -> SyncProvider
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 SyncProvider
impl Debug for SyncProvider
Source§impl<'de> Deserialize<'de> for SyncProvider
impl<'de> Deserialize<'de> for SyncProvider
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 SyncProvider
impl RefUnwindSafe for SyncProvider
impl Send for SyncProvider
impl Sync for SyncProvider
impl Unpin for SyncProvider
impl UnwindSafe for SyncProvider
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