pub struct Applied {
pub created: Vec<EntityId>,
pub removed: Vec<(EntityId, Entity)>,
pub revision: u64,
}Expand description
What a committed transaction did.
Fields§
§created: Vec<EntityId>Ids created, in commit order.
removed: Vec<(EntityId, Entity)>Entities removed, with their contents.
Returned rather than dropped so a caller can undo, log, or re-file them. A delete that silently discards the payload makes an editor’s undo stack impossible to build.
revision: u64The model revision after the commit.
Trait Implementations§
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnsafeUnpin for Applied
impl UnwindSafe for Applied
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