pub struct SyncTask {Show 13 fields
pub id: String,
pub name: String,
pub source_account: String,
pub source_path: String,
pub target_account: String,
pub target_path: String,
pub schedule: Option<Schedule>,
pub filters: Vec<FilterRule>,
pub encryption: Option<EncryptionConfig>,
pub diff_mode: DiffMode,
pub preserve_metadata: bool,
pub verify_integrity: bool,
pub sync_policy: Option<SyncPolicy>,
}Fields§
§id: String§name: String§source_account: String§source_path: String§target_account: String§target_path: String§schedule: Option<Schedule>§filters: Vec<FilterRule>§encryption: Option<EncryptionConfig>§diff_mode: DiffMode§preserve_metadata: bool§verify_integrity: bool§sync_policy: Option<SyncPolicy>同步策略(删除、覆盖、扫描限频等)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncTask
impl<'de> Deserialize<'de> for SyncTask
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 SyncTask
impl RefUnwindSafe for SyncTask
impl Send for SyncTask
impl Sync for SyncTask
impl Unpin for SyncTask
impl UnwindSafe for SyncTask
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