pub struct SyncResponse {
pub protocol: ProtocolVersion,
pub directive: SyncDirective,
pub acknowledged: Vec<OperationAck>,
pub rejected: Vec<OperationRejection>,
pub conflicts: Vec<Conflict>,
pub changes: Vec<RemoteChange>,
pub next_cursor: Cursor,
pub has_more: bool,
pub server_time: HybridTimestamp,
}Expand description
One response containing push results and incremental pull changes.
Fields§
§protocol: ProtocolVersionServer protocol version.
directive: SyncDirectiveCompatibility or recovery instruction evaluated before reconciliation.
acknowledged: Vec<OperationAck>Accepted operations, including deterministic duplicate replies.
rejected: Vec<OperationRejection>Permanently rejected operations.
conflicts: Vec<Conflict>Operations requiring conflict handling.
changes: Vec<RemoteChange>Authoritative journal page after the client’s cursor.
next_cursor: CursorCursor through which returned changes are complete.
has_more: boolTrue when another exchange is needed to finish the current pull.
server_time: HybridTimestampHybrid timestamp emitted by the server.
Trait Implementations§
Source§impl Clone for SyncResponse
impl Clone for SyncResponse
Source§fn clone(&self) -> SyncResponse
fn clone(&self) -> SyncResponse
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 SyncResponse
impl Debug for SyncResponse
Source§impl<'de> Deserialize<'de> for SyncResponse
impl<'de> Deserialize<'de> for SyncResponse
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 SyncResponse
Source§impl PartialEq for SyncResponse
impl PartialEq for SyncResponse
Source§impl Serialize for SyncResponse
impl Serialize for SyncResponse
impl StructuralPartialEq for SyncResponse
Auto Trait Implementations§
impl Freeze for SyncResponse
impl RefUnwindSafe for SyncResponse
impl Send for SyncResponse
impl Sync for SyncResponse
impl Unpin for SyncResponse
impl UnsafeUnpin for SyncResponse
impl UnwindSafe for SyncResponse
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