pub struct SyncOptions {Show 25 fields
pub source: PathBuf,
pub destination: PathBuf,
pub archive: bool,
pub recursive: bool,
pub delete: bool,
pub dry_run: bool,
pub exclude: Vec<String>,
pub include: Vec<String>,
pub generate_sigs: bool,
pub snapshot: bool,
pub throttle: bool,
pub cleanup: bool,
pub size: Option<u64>,
pub checkpoint_interval: Option<u64>,
pub checkpoint_keep: usize,
pub zero_copy: bool,
pub verify: bool,
pub checksums: Vec<ChecksumType>,
pub checksums_overwrite: bool,
pub cid_output: bool,
pub owner: bool,
pub group: bool,
pub perms: bool,
pub xattrs: bool,
pub acls: bool,
}Expand description
Options for a sync/copy operation (replaces CLI flags).
Fields§
§source: PathBuf§destination: PathBuf§archive: bool§recursive: bool§delete: bool§dry_run: bool§exclude: Vec<String>§include: Vec<String>§generate_sigs: bool§snapshot: bool§throttle: bool§cleanup: bool§size: Option<u64>§checkpoint_interval: Option<u64>§checkpoint_keep: usize§zero_copy: bool§verify: bool§checksums: Vec<ChecksumType>§checksums_overwrite: bool§cid_output: bool§owner: bool§group: bool§perms: bool§xattrs: bool§acls: boolTrait Implementations§
Source§impl Clone for SyncOptions
impl Clone for SyncOptions
Source§fn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
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 SyncOptions
impl Debug for SyncOptions
Auto Trait Implementations§
impl Freeze for SyncOptions
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnsafeUnpin for SyncOptions
impl UnwindSafe for SyncOptions
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.