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,
}Expand description
定义统一的同步参数结构
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 (const: unstable) · 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 UnsafeUnpin 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
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>
Converts
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>
Converts
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