pub struct SyncConflict {
pub conflict_id: String,
pub peer_id: String,
pub kind: SyncConflictKind,
pub sequence: Option<u64>,
pub local_hash: String,
pub remote_hash: String,
pub reason: String,
pub detected_at_ms: u64,
}Expand description
Payload-free conflict observation suitable for a UI or diagnostics API.
Fields§
§conflict_id: StringStable conflict identity used by resolution requests.
peer_id: StringPeer that produced the conflicting observation.
kind: SyncConflictKindGeneric conflict category.
sequence: Option<u64>Conflicting replication sequence, when applicable.
local_hash: StringLocal content digest, never the content payload.
remote_hash: StringRemote content digest, never the content payload.
reason: StringBounded operator-visible explanation.
detected_at_ms: u64Detection timestamp supplied by the caller.
Implementations§
Source§impl SyncConflict
impl SyncConflict
Sourcepub fn validate(&self) -> SyncResult<()>
pub fn validate(&self) -> SyncResult<()>
Validates the bounded, payload-free conflict contract.
Trait Implementations§
Source§impl Clone for SyncConflict
impl Clone for SyncConflict
Source§impl Debug for SyncConflict
impl Debug for SyncConflict
Source§impl<'de> Deserialize<'de> for SyncConflict
impl<'de> Deserialize<'de> for SyncConflict
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
impl Eq for SyncConflict
Source§impl PartialEq for SyncConflict
impl PartialEq for SyncConflict
Source§impl Serialize for SyncConflict
impl Serialize for SyncConflict
impl StructuralPartialEq for SyncConflict
Auto Trait Implementations§
impl Forget for SyncConflict
impl Freeze for SyncConflict
impl RefUnwindSafe for SyncConflict
impl Send for SyncConflict
impl Sync for SyncConflict
impl Unpin for SyncConflict
impl UnsafeUnpin for SyncConflict
impl UnwindSafe for SyncConflict
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