pub struct SyncParameters {
pub source: PathBuf,
pub target: PathBuf,
pub dry_run: bool,
pub checksum: bool,
pub excludes: Vec<String>,
pub delete_extra: bool,
pub delete_excludes: Vec<String>,
pub detail: bool,
}Fields§
§source: PathBuf源目录
target: PathBuf目标目录
dry_run: bool试运行模式
checksum: bool是否使用校验和比较
excludes: Vec<String>排除同步规则列表
delete_extra: bool是否删除目标额外文件
delete_excludes: Vec<String>排除目标目录删除列表
detail: bool是否显示详细操作列表
Trait Implementations§
Source§impl Clone for SyncParameters
impl Clone for SyncParameters
Source§fn clone(&self) -> SyncParameters
fn clone(&self) -> SyncParameters
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 SyncParameters
impl Debug for SyncParameters
Source§impl From<&Command> for SyncParameters
impl From<&Command> for SyncParameters
Auto Trait Implementations§
impl Freeze for SyncParameters
impl RefUnwindSafe for SyncParameters
impl Send for SyncParameters
impl Sync for SyncParameters
impl Unpin for SyncParameters
impl UnwindSafe for SyncParameters
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