pub struct SyncConfig {
pub repo_url: String,
pub local_path: PathBuf,
pub providers: Vec<String>,
pub shallow_clone: bool,
pub branch: String,
pub watch_interval_secs: u64,
}Expand description
Configuration for the sync engine.
Fields§
§repo_url: StringURL of the Git repository to sync credentials through.
local_path: PathBufLocal path where the sync repository is cloned.
providers: Vec<String>List of provider names to sync (e.g. [“gh”, “claude”]). Empty means sync all available providers.
shallow_clone: boolWhether to use shallow clone (–depth 1) for initial clone.
branch: StringGit branch to use for sync.
watch_interval_secs: u64Interval in seconds for watch mode.
Implementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn load_from_file(path: &Path) -> Result<Self, SyncError>
pub fn load_from_file(path: &Path) -> Result<Self, SyncError>
Load config from a TOML file, falling back to defaults for missing fields.
Sourcepub fn default_config_path() -> PathBuf
pub fn default_config_path() -> PathBuf
Returns the default config file path.
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 SyncConfigwhere
SyncConfig: Default,
impl<'de> Deserialize<'de> for SyncConfigwhere
SyncConfig: Default,
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 UnsafeUnpin 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