pub struct SyncPolicy {
pub delete_orphans: bool,
pub overwrite_existing: bool,
pub scan_cooldown_secs: u64,
}Expand description
同步策略
Fields§
§delete_orphans: bool是否删除目标端的孤立文件(仅目标存在)
overwrite_existing: bool是否覆盖目标端已存在文件
scan_cooldown_secs: u64列目录扫描的冷却时间(秒),在冷却期内复用上次快照以降低风控风险
Trait Implementations§
Source§impl Clone for SyncPolicy
impl Clone for SyncPolicy
Source§fn clone(&self) -> SyncPolicy
fn clone(&self) -> SyncPolicy
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 SyncPolicy
impl Debug for SyncPolicy
Source§impl<'de> Deserialize<'de> for SyncPolicy
impl<'de> Deserialize<'de> for SyncPolicy
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 SyncPolicy
impl RefUnwindSafe for SyncPolicy
impl Send for SyncPolicy
impl Sync for SyncPolicy
impl Unpin for SyncPolicy
impl UnwindSafe for SyncPolicy
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