pub struct SyncConfig {
pub sync_new_files: bool,
pub skip_hooks: bool,
pub commit_message: Option<String>,
pub remote_name: String,
pub branch_name: String,
}
Expand description
Configuration for the synchronizer
Fields§
§sync_new_files: bool
Whether to sync new/untracked files
skip_hooks: bool
Whether to skip git hooks when committing
commit_message: Option<String>
Custom commit message (can include {hostname} and {timestamp} placeholders)
remote_name: String
Remote name to sync with (e.g., “origin”)
branch_name: String
Branch name to sync
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
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