pub struct Edit<'a> {
pub id: Id,
pub name: Cow<'a, str>,
pub authors: Vec<Id>,
pub created_at: i64,
pub ops: Vec<Op<'a>>,
}Expand description
A batch of operations with metadata (spec Section 4.1).
Edits are standalone patches. They contain no parent references; ordering is provided by on-chain governance.
Fields§
§id: IdThe edit’s unique identifier.
name: Cow<'a, str>Optional human-readable name.
Author entity IDs.
created_at: i64Creation timestamp (metadata only, not used for conflict resolution).
ops: Vec<Op<'a>>Operations in this edit.
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Edit<'a>
Auto Trait Implementations§
impl<'a> Freeze for Edit<'a>
impl<'a> RefUnwindSafe for Edit<'a>
impl<'a> Send for Edit<'a>
impl<'a> Sync for Edit<'a>
impl<'a> Unpin for Edit<'a>
impl<'a> UnwindSafe for Edit<'a>
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