pub struct OplogEntry {
pub id: Uuid,
pub hlc: Hlc,
pub device_id: String,
pub op: GraphOp,
}Expand description
One row of the oplog: an op plus its global identity and merge metadata. This is the unit a future sync mechanism ships between devices.
Fields§
§id: UuidUUIDv7 identity of the op itself (dedup key across devices).
hlc: HlcHybrid logical clock at issue time; total merge order.
device_id: StringDevice that issued the op.
op: GraphOpThe op.
Trait Implementations§
Source§impl Clone for OplogEntry
impl Clone for OplogEntry
Source§fn clone(&self) -> OplogEntry
fn clone(&self) -> OplogEntry
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 OplogEntry
impl Debug for OplogEntry
Source§impl<'de> Deserialize<'de> for OplogEntry
impl<'de> Deserialize<'de> for OplogEntry
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
Source§impl PartialEq for OplogEntry
impl PartialEq for OplogEntry
Source§impl Serialize for OplogEntry
impl Serialize for OplogEntry
impl StructuralPartialEq for OplogEntry
Auto Trait Implementations§
impl Freeze for OplogEntry
impl RefUnwindSafe for OplogEntry
impl Send for OplogEntry
impl Sync for OplogEntry
impl Unpin for OplogEntry
impl UnsafeUnpin for OplogEntry
impl UnwindSafe for OplogEntry
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