pub struct SyncReport {
pub scanned: usize,
pub scan_errors: Vec<SyncReportError>,
pub transfers_created: usize,
pub transferred: usize,
pub failed: usize,
pub errors: Vec<SyncReportError>,
pub conflicts: Vec<SyncReportConflict>,
}Expand description
sync/sync_route の結果。
旧BatchResult/SyncResult/FacadeSyncResultを統合した単一型。 Serialize対応でMCP層がそのまま返せる。
Fields§
§scanned: usizeスキャンで検出されたファイル数。
scan_errors: Vec<SyncReportError>スキャン時の非致命的エラー(個別ファイル読み取り失敗等)。
transfers_created: usize計画で作成されたTransfer数。
transferred: usize実行で成功した転送数。
failed: usize実行で失敗した転送数。
errors: Vec<SyncReportError>転送失敗詳細。
conflicts: Vec<SyncReportConflict>検出されたコンフリクト。
複数Locationで同一ファイルが異なる内容に更新された場合に報告される。 コンフリクトのあるファイルのUpdate転送は実行されない。
Trait Implementations§
Source§impl Clone for SyncReport
impl Clone for SyncReport
Source§fn clone(&self) -> SyncReport
fn clone(&self) -> SyncReport
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 SyncReport
impl Debug for SyncReport
Source§impl Default for SyncReport
impl Default for SyncReport
Source§fn default() -> SyncReport
fn default() -> SyncReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyncReport
impl<'de> Deserialize<'de> for SyncReport
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 SyncReport
impl RefUnwindSafe for SyncReport
impl Send for SyncReport
impl Sync for SyncReport
impl Unpin for SyncReport
impl UnsafeUnpin for SyncReport
impl UnwindSafe for SyncReport
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