pub struct Operation {
pub id: OperationId,
pub document_id: String,
pub replica_id: String,
pub operation: UndoableOperation,
pub timestamp: u64,
pub group_id: Option<GroupId>,
pub undone: bool,
}Expand description
A recorded operation with metadata.
Fields§
§id: OperationIdUnique operation ID.
document_id: StringThe document this operation applies to.
replica_id: StringThe replica that created this operation.
operation: UndoableOperationThe operation itself.
timestamp: u64Lamport timestamp.
group_id: Option<GroupId>Group ID for atomic undo.
undone: boolWhether this operation has been undone.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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