pub struct SyncConfig {
pub enabled: bool,
pub target_directory: Option<String>,
pub directory_structure: SyncDirectoryStructure,
pub sync_direction: SyncDirection,
pub include_metadata: bool,
pub realtime_monitoring: bool,
pub filename_pattern: String,
pub exclude_pattern: Option<String>,
pub force_overwrite: bool,
pub last_sync: Option<DateTime<Utc>>,
}Will be extracted to mockforge-workspace crate
Expand description
Directory sync configuration for a workspace
Fieldsยง
ยงenabled: boolWill be extracted to mockforge-workspace crate
Enable directory syncing for this workspace
target_directory: Option<String>Will be extracted to mockforge-workspace crate
Target directory for sync (relative or absolute path)
directory_structure: SyncDirectoryStructureWill be extracted to mockforge-workspace crate
Directory structure to use (flat, nested, grouped)
sync_direction: SyncDirectionWill be extracted to mockforge-workspace crate
Auto-sync direction (one-way workspaceโdirectory, bidirectional, or manual)
include_metadata: boolWill be extracted to mockforge-workspace crate
Whether to include metadata files
realtime_monitoring: boolWill be extracted to mockforge-workspace crate
Filesystem monitoring enabled for real-time sync
filename_pattern: StringWill be extracted to mockforge-workspace crate
Custom filename pattern for exported files
exclude_pattern: Option<String>Will be extracted to mockforge-workspace crate
Regular expression for excluding workspaces/requests
force_overwrite: boolWill be extracted to mockforge-workspace crate
Force overwrite existing files during sync
last_sync: Option<DateTime<Utc>>Will be extracted to mockforge-workspace crate
Last sync timestamp
Trait Implementationsยง
Sourceยงimpl Clone for SyncConfig
impl Clone for SyncConfig
Sourceยงfn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยง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>
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>
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 more