pub struct SyncConfig {
pub enabled: bool,
pub provider: SyncProvider,
pub interval_seconds: u64,
pub conflict_strategy: ConflictResolutionStrategy,
pub auto_commit: bool,
pub auto_push: bool,
pub directory_structure: SyncDirectoryStructure,
pub sync_direction: SyncDirection,
}Expand description
Synchronization configuration
Fields§
§enabled: boolWhether synchronization is enabled
provider: SyncProviderSynchronization provider (git, cloud, etc.)
interval_seconds: u64Synchronization interval in seconds
conflict_strategy: ConflictResolutionStrategyConflict resolution strategy
auto_commit: boolWhether to auto-commit changes
auto_push: boolWhether to push changes automatically
directory_structure: SyncDirectoryStructureDirectory structure preference
sync_direction: SyncDirectionSync direction preference
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
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 SyncConfig
impl Debug for SyncConfig
Source§impl Default for SyncConfig
impl Default for SyncConfig
Source§impl<'de> Deserialize<'de> for SyncConfig
impl<'de> Deserialize<'de> for SyncConfig
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 SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnwindSafe for SyncConfig
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